Skeleton code for an API, packaged with signup, login and login checking, and basic token functionality.
#Installation
- run npm install on the downloaded repo.
- in the root folder, start the API with 'node server.js'
- Open Insomnia, and perform a GET request to https://localhost:8080/api/test. If you see the 'Connected Successfully' message, you are ready to go.
##Available Pre-packaged Routes
- /api/signup: Performs a user registration.
- Parameters:
- name
- password
- /api/login: Logs in a user
- Parameters:
- password
- /api/checklogin: checks a user's login status against a userID/token
- Parameters:
- user_id
- token