- Create a database in your preferred DB of choice.
- Use the db name for the path for the DB host. example:
mysql://your_user:your_pass@your_host/your_database_name
- Add this to your
.env
file.
DB_URL=mysql://your_user:your_pass@your_host/your_database_name
ADMIN_KEY=banana
Run foreman start
to start the server.
- Install mocha
npm install mocha -g
. - Change directory to
test/
- run
$ mocha rest.js --reporter spec
Refer to the test/rest.js
example to know how to authenticate with the server.
MIT