Skip to content

dboland77/books-i-might-like-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the backend for the "Books I might like" app. It uses Express and a MySQL database v8 with authentication

  1. A user login table has been created to store username and passwords (the sql is in users.sql)
  2. Validation is performed on registration
  3. The passwords are encrypted with bcrypt
  4. SQL injection is prevented with escapes
  5. Authentication is with JWT
  6. This provides a REST API with one GET endpoint to return the book data and two POST endpoints for sign up and login:
  7. .env variables are used to protect private information

To use without the front end you can query with:

GET /api/main (secured route - need a JSON web token)

POST /api/sign-up (raw JSON parameters - username, password, password_repeat)

POST /api/login (raw JSON parameters - username, password)

About

Backend for the "Books I might like" app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published