This project was generated with Angular CLI.
I know this is a tiny application but many people use it to award meetup prizes (high 5 to all of us) - if you happen to use this app please click the star button (at the top of the page) - it means a lot to all the contributors.
- Install node
- Fork this repository (click the
forkbutton in the top right of the screen) - Clone your fork
git clone https://github.com/[your-user-name]/prize-o-tron- ^^ Note that you must replace [your-user-name] with your github user name.
- Install project dependencies
cd prize-o-tron npm install npm test - Start the server
npm run-script start:watch<- This runs the app locally only - Visit http://localhost:4200
The app runs slightly differently when deployed to Heroku than when running locally. To run under the same configuration as Heroku, do the following:
cd prize-o-tron
npm install
npm run build
npn start <- runs a local express server on port 4200
Navigate to http://localhost:4200/.
The app will NOT automatically reload if you change any of the source files.
Run ng serve or npm run-script start:watch for a dev server. Navigate to http://localhost:4200/.
The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.
Run npm test to execute all unit and end-to-end tests.
Run npm run-script test:unit to execute only the unit tests via Karma.
Run npm run-script test:e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
