Name Last Update
..
.idea Loading commit data...
api Loading commit data...
node_modules Loading commit data...
.DS_Store Loading commit data...
Deployment Diagram.docx Loading commit data...
README.txt Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
server.js Loading commit data...

README.txt

How to run the server:

1 - This is a node.js server so node is required. https://nodejs.org/en/download/
2 - Start Windows Powershell on windows or terminal on Mac.
3 - Navigate to this folder (.....\ITE1893_Risikovurdering_Gruppe4\restApi)
4 - Use command: "npm run api"
5 - The server should start running on localhost and listen to port 3000 (and should auto-restart if changes are made in the code)
6 - Endpoints are documented in the code (routes.js)
7 - Use Postman to test endpoints where a body is expected