Thermodynamics-Two-Cups-Simulation
A model simulating the heat transfer of a hot cup and a cold cup.
Demo
https://wise-community.github.io/Thermodynamics-Two-Cups-Simulation/dist/index.html
Development
You will need NPM (https://www.npmjs.com) and Git.
- Checkout the project
$ git clone https://github.com/WISE-Community/Thermodynamics-Two-Cups-Simulation.git
- Install gulp globally
$ cd Thermodynamics-Two-Cups-Simulation
Thermodynamics-Two-Cups-Simulation$ npm install -g gulp-cli
- Install dependencies
Thermodynamics-Two-Cups-Simulation$ npm install
- Start gulp task. This will start a running process to copy files and compile changes to typescript files.
Thermodynamics-Two-Cups-Simulation$ gulp
-
See the model on the browser by going to path_to_Thermodynamics-Two-Cups-Simulation/dist/index.html . (e.g. file:///Users/myusername/dev/Thermodynamics-Two-Cups-Simulation/dist/index.html)
-
Make changes with your favorite IDE. Changes to typescript will be immediately compiled to the dist folder. If you make any other changes, you will need to restart gulp for now.
Resources
This is a good resource on using Gulp and TypeScript: https://www.typescriptlang.org/docs/handbook/gulp.html