This repo contains a replica of the search box that can be found on www.rentalcars.com.
It uses Node.js with Express for the backend and Vue.js on the frontend.
The endpoints for the backend can be found in app.js
.
The frontend app can be found in the following directory: frontend
.
Clone the repo, cd
into the directory, then run:
$ npm install
After this has finished, cd
into the frontend
directory, then run:
$ npm install
Now, cd
back into the root dir and run:
$ npm install -g foreman
Finally, run:
$ nf start
This will start the backend and frontend as separate services.
Now head to http://localhost:8080 and voilĂ !
Jest is used as the test framework. To run the test suite, run the following in the root dir:
$ npm test
standard JS is used for codestyle. To check, run the following in the root dir after running npm install standard -g
:
$ standard
If there is nothing returned, that's good.