This is the basic structure of project based on NodeJS and Angular2 which are using TypeScript.
git clone [email protected]:NimaZahedi/Angular2-NodeJS-TypeScript.git
- Navigate to the root directory
- Run
npm install
- Navigate to src directory
cd src/
- Run
npm install
- You need to compile ts files, so do that, whatever you want:
- vscode: you can set a task for that!
- atom and sublime: you can install typescript packeage and compile ts to js files on save.
- or simply go to the root folder of application on terminal and run
tsc -w
so when ever you save any ts files, tsc compiles all ts files to js.
- Run in command line
node server.js
- Open your browser and go to the
http://localhost:3000