Skip to content

Skeleton code for an API, packaged with signup, login and login checking, and basic token functionality.

Notifications You must be signed in to change notification settings

robmyers82/apiSkeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apiSkeleton

Skeleton code for an API, packaged with signup, login and login checking, and basic token functionality.

#Installation

  1. run npm install on the downloaded repo.
  2. in the root folder, start the API with 'node server.js'
  3. 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

  1. /api/signup: Performs a user registration.
  • Parameters:
  • name
  • email
  • password
  1. /api/login: Logs in a user
  • Parameters:
  • email
  • password
  1. /api/checklogin: checks a user's login status against a userID/token
  • Parameters:
  • user_id
  • token

About

Skeleton code for an API, packaged with signup, login and login checking, and basic token functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published