/waitline-server

RESTful API for waitline app

Primary LanguageJavaScript

Waitline Server

ABOUT

CRUD API server for waitline app that was developed by Aldiyar Batyrbekov.
This API supports:

  • authentication through JWT
  • GET requests
  • POST requests
  • PATCH requests
  • DELETE requests

The API is connected to relational database built using PostgreSQL. ## Available Endpoints
  • /auth

    Handles all the authentication related tasks.
  • /users

    • "POST" adds user to users table
    • :/id "GET" retrieves a user with specific /:id
    • :/id "PATCH" updates specified user with new fields
    • :/id "DELETE" deletes user from database
  • /line

    • "GET" retrieves all guests associated with specific user
    • "POST" adds new guest to the line table
    • "PATCH" updates a given guest with new fields
    • "DELETE" deletes a guest from database
    • ## Scripts

      Start the application npm start

      Start nodemon for the application npm run dev

      Run the tests npm test

      Deploying

      When your new project is ready for deployment, add a new Heroku application with heroku create. This will make a new git remote called "heroku" and you can then npm run deploy which will push to this remote's master branch.