- make a .env based on .env.example and make your hash key (if you don't have one run
node -e "console.log(require('crypto').randomBytes(64).toString('hex'))" to generate jwt secrete) - run
npm i - run
npm startfor a normal run ornpm run devfor auto reload - register and open database.db in a db editor to give yourself admin. To add more admins you can use the API but the first one has to be done manually
- go to the running link (from the console) and go to /docs to read the api docs
16 total paths:
- 8 GET
- 3 POST
- 2 DELETE
- 3 PUT
- 8 Protected paths of different permissions
Some paths require to be logged in, some require you to be the owner of the YSWS (to make changes), and some require admin permissions (role 1)