Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.23 KB

File metadata and controls

44 lines (27 loc) · 1.23 KB

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.

  1. Checkout the project
$ git clone https://github.com/WISE-Community/Thermodynamics-Two-Cups-Simulation.git
  1. Install gulp globally
$ cd Thermodynamics-Two-Cups-Simulation
Thermodynamics-Two-Cups-Simulation$ npm install -g gulp-cli
  1. Install dependencies
Thermodynamics-Two-Cups-Simulation$ npm install
  1. Start gulp task. This will start a running process to copy files and compile changes to typescript files.
Thermodynamics-Two-Cups-Simulation$ gulp
  1. 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)

  2. 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