This application is heavily based off the "Tour of Heroes" tutorial provided by Angular.js here. The application has been modified to list courses instead of heroes.
This repository holds the TypeScript source code of the angular.io quickstart, the foundation for most of the documentation samples.
Node.js and npm are essential for the project to work.
Get it now if it's not already installed on your machine.Verify that you are running at least node v4.x.x and npm 3.x.x
by running node -v and npm -v in a terminal/console window.
Older versions produce errors.
We recommend nvm for managing multiple versions of node and npm.
Also, you need to download git here.
- Ensure you have node and npm installed.
- Create a project folder and name it whatever you like (ie. Course Organizer)
- Clone or download the project into your folder
- Go inside your project folder
- Right click inside the folder and select "Git Bash Here"
- Type in
git clone https://github.com/jameskim08/Course-Organizer.git - Open up command prompt in folder and run the following commands
npm install
npm start- Click on the green "Clone or download" button on this page and then "Download ZIP"
- Extract content of the zip file into your project folder
- Open up command prompt in folder and run the following commands
npm install
npm startThe npm start command first compiles the application,
then simultaneously re-compiles and runs the lite-server.
Both the compiler and the server watch for file changes.
Shut it down manually with Ctrl-C.
We've captured many of the most useful commands in npm scripts defined in the package.json:
npm start- runs the compiler and a server at the same time, both in "watch mode".npm run tsc- runs the TypeScript compiler once.npm run tsc:w- runs the TypeScript compiler in watch mode; the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them.npm run lite- runs the lite-server, a light-weight, static file server, written and maintained by John Papa and Christopher Martin with excellent support for Angular apps that use routing.