REST API File Server.
Create a file named .env
. After creating the file, run:
python3 generateRandomHash.py
Set TOKEN_SECRET
equal to the randomly generated hash in .env
.
To start the application, run:
yarn --frozen-lockfile && node .
When signing in, there is an already-existing user:
Username: test
Password: test
localhost:8080/auth/signup
(POST)localhost:8080/auth/login
(POST)localhost:8080/auth/logout
(POST)localhost:8080/pictures/:id
(GET)localhost:8080/pictures/upload
(POST)