The Rent-A-Car project is based on MEAN Stack that contains 4 different elements - each using JavaScript to run itself:
- MongoDB - non-relational database.
- ExpressJS - Node framework to ease usage of server calls.
- AngularJS - frontend JS library used to create SPA applicatons.
- Node - server-side JS environment based on V8.
Rent-A-Car app allows user to search through cars available for renting, rent selected car and use online payment handled by DotPay API to authorize and pay for car renting. Signing up/Logging in is required for app's full experience.
App's default credentials:
- Login: '[email protected]', passwd: 'test'.
- Admin: '[email protected]', passwd: 'admin'.
- Git
- Node.js and NPM >= v0.12.0
- Bower (
npm install --global bower
) - Ruby and then
gem install sass
- Grunt (
npm install --global grunt-cli
) - MongoDB - Keep a running daemon with
mongod
-
Run
npm install
to install server dependencies. -
Run
bower install
to install front-end dependencies. -
Run
mongod
in a separate shell to keep an instance of the MongoDB Daemon running -
Run
grunt serve
to start the development server. It should automatically open the client in your browser when ready.
Run grunt build
for building and grunt serve
for preview.
Running npm test
will run the unit tests with karma.