- nodejs > ver 8.0
- npm
-
Clone the repo into local computer.
-
Setup mysql database schema and table
- run the scripts in db folder to create humans schema and person table.
-
Navigate to rest-api folder where the package.json is located, and run
npm install
-
Edit db settings in rest-api/app/config/db.config.js accordingly
HOST: "localhost", USER: "root", PASSWORD: "password", DB: "humans"
-
Start the app by running
npm start
If everything set correctly, you should see console log output showing the server started suscessfully and waiting to serve on port 3000.
- Postman collection script was included in the repo to test all the endpoints, import humans-test.postman_collection.json into postman, and run the tests.