This is a mini project that is used to manger bus and station terminal listings. This project was generated with Angular CLI version 1.1.1.
-
Clone repository
git clone git@github.com:mel-michael/flixbus-station.git
-
Install packages
npm install
-
Run
ng serve
for a dev server. Navigate tohttp://localhost:4200/
. The app will automatically reload if you change any of the source files.
-
npm install json-server -g
-
cd to the project directory on another process
-
Run
json-server --watch db.json
to be able to mock Fake API calls
Running the mock server locally is advisable to see immediate changes. If you want to use a remote mock service here is the url for the data store https://my-json-server.typicode.com/mel-michael/flix-demo
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 ng test
to execute the unit tests via Karma.
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
.