Skip to content

andrewtrann777/Cat-Express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cat-Express

REST API File Server.

Table of Contents

Environment Variables

Create a file named .env. After creating the file, run:

python3 generateRandomHash.py

Set TOKEN_SECRET equal to the randomly generated hash in .env.

Running the Application

To start the application, run:

yarn --frozen-lockfile && node .

When signing in, there is an already-existing user:

Username: test
Password: test

REST Endpoints

  • 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)