Documentation for this project is: HERE
- Install Node.js version 8.0.0
- Install MongoDB Server
- Clone the repository
git clone https://github.com/olumidayy/img-rpstry.git
- Install dependencies
cd img-rpstry
npm install
- Build and run the project
npm start
Navigate to http://localhost:3000/api
All the different build steps are orchestrated via npm scripts. Npm scripts basically allow us to call (and chain) terminal commands via npm.
Npm Script | Description |
---|---|
start |
Runs full build and runs node on src/index.js. Can be invoked with npm start |
dev |
Runs full build before starting all watch tasks. Can be invoked with npm dev |
test |
Runs build and run tests using lab |
The tests are written with Lab.
"@hapi/lab": "^24.3.2",
npm test
Test files are created under test folder.