Skip to content

CarlosRQuinteroM/proyecto_5_mongoose-GitFlow

Repository files navigation

App Bookings Restaurants

🧐 About

💻 Technologys

📋 Instructions

⚙️ Phase I backend development


About

This is the backend for a restaurant reservation application.

This project is part of the Full Stack Developer Bootcamp taught by GeeksHubs Academy.


Phase I Start Date: 01/ jun /2021 Deadline: 07 / jun / 2021

Collaborators:


Technologies

These are the technologies with which we have worked in this project: Visual JavaScriptHTML5 Git GitHubGitHub trello

Click to expand trello picturetrello


Instructions

Click to expand
    $ npm install node
  • Download Nodemon.
    $ npm install nodemon
  • Download Express.
    $ npm install express
  • Download mongoose.
    $ npm install mongoose
  • Download bcrypt.
    $ npm install bcrypt
  • Download jsonwebtoken.
    $ npm install jsonwebtoken
  • Download Cors.
    $ npm install cors
  • Download Validator.
    $ npm install validator

Phase I Backend development

Click to expand

The project consists of the development of a reserve management system.

We work with an internal database that is hosted in MongoDB Atlas and with its own API.

The endpoints worked are:

User

  • User Creation http://localhost:3000/user + User data through the body

    {
      "name": "ejemplo",
      "surname": "insertar apellidos",
      "email": "ejemplo@correo.com",
      "password": "contraseña",
      "phoneNumber": 612345678,
      "country": "insertar País",
      "city": "insertar Ciudad",
      "birthday": "YYYY/MM/DD",
      "isAdmin": true/false,
      "isActive": true/false
    }
    
  • Login Users http://localhost:3000/user/login + User credentials by body.

    {
      "email": "ejemplo@correo.com",
      "password": "contraseña"
    }
    
  • Delete Users http://localhost:3000/user/ (:id) + Admin Token

  • Search for all users http://localhost:3000/user + Admin Token



Restaurants

-Creation Restaurant http://localhost:3000/rest/create +Restaurant Data

{
    "name":,
    "country":,
    "city":,
    "bookings":[],
    "isActive": 

}

---

Bookings

{
    "id":"60b8a3bd1f08426c7cacb336",
    "userId":"60b66bed4920d7121a06f05b",
    "comensales":"reserva para 8 personas",
    "fecha":"2021-05-06",
    "hora":"19:00",
    "alergias":"celiaco",
    "comentarios":"trona de bebe"
}
  • Delete Bookings http://localhost:3000/rest + Data booking by body { "id" :"60b79ecf2b356425940d4edb", "idRestaurante":"60b8a3bd1f08426c7cacb336" }

http://localhost:3000/rest
- List of all restaurant reservations
http://localhost:3000/rest/bookings + el ID del restaurante por body

{ "id":"60b8a3bd1f08426c7cacb336" }

Run in Postman


🔝

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published