Skip to content

Create your Rental Agreement Online Using Angular2 and Express.js

Notifications You must be signed in to change notification settings

bipinswarnkar1989/rental-agreement

Repository files navigation

RentalAgreement

This project was generated with angular-cli version 1.0.0-beta.25.5.

Development server

  1. Start your mongoDB first : Ex- /Users/bipinswarnkar/mongodb/bin/mongod --dbpath="/Users/bipinswarnkar/Node-js-worspace/data
  2. Download Zip and go inside root of app: cd rental-agreement
  3. Run ng build --aot -prod
  4. Run : npm install & npm start in new terminal.
  5. Go http://localhost:3000/

Development server method 2

  1. Start your mongoDB first : Ex- /Users/bipinswarnkar/mongodb/bin/mongod --dbpath="/Users/bipinswarnkar/Node-js-worspace/data
  2. Download Zip and go inside root of app: cd rental-agreement
  3. Run : npm install & node server.js in new terminal.
  4. Run ng serve in a new terminal.
  5. Go http://localhost:4200/

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.

Build

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.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Deploying to GitHub Pages

Run ng github-pages:deploy to deploy to GitHub Pages.

Further help

To get more help on the angular-cli use ng help or go check out the Angular-CLI README.