The server repo for the web application zyt -> https://github.com/vschefer/zyt
- Clone this project
cd
into the project root folder.- run
npm i
- Install mongodb locally (not with npm)
- run
mongod
orsudo service mongod start
to start the daemon - To import the database dump run
mongorestore --drop
- run
export zyt_jwtPrivateKey=ANY_VALUE_YOU_WANT
. We used to executeexport zyt_jwtPrivateKey=DevMachine
- run
node index.js
orexport DEBUG=app:runtime && nodemon index.js
to see debugging informations in the console.
- Install MongoDB Compass: https://www.mongodb.com/products/compass
- Start the program.
- Leave the default values and press connect.
Admins | Employees |
---|---|
vanessa.schefer@domain.tld michael.fischer@domain.tld |
maximilian.mueller@domain.tld |
Password for all users: zytApp2018!
https://documenter.getpostman.com/view/5816654/RznCqzWF
- Install the Postman app on your device.
- Click on the provided API documentation link.
- On the documentation page, click on "Run in Postman", at the right top and import the data into your app.
Testing the API manually is now more comfortable.
- Stop the node server, that was started via
node index.js
ornodemon index.js
etc. - Run
npm test