Trabajo #3 del curso de Desarrollo Web Full Stack de Acámica.
- Node.js
- Nodemon
- Express
- JWT para autenticación via Token
- MySQL
- Sequelize
- Postman para manejo de endpoints y testing
- Swagger para documentación de API
El objetivo del trabajo es generar el backend de una app de pedidos de comida llamada Delilah Restó, generando la arquitectura, bases de datos relacionales, endpoints funcionales y documentación.
Abrir el archivo api-docs.yaml
y copiar su contenido en Swagger o importar el mismo desde las opciones
Se listarán los endpoints y métodos disponibles y la información necesaria para hacer uso de los mismos
Clonar el repositorio desde el siguiente link.
Desde la consola con el siguiente link:
git clone https://github.com/guido732/delilah-resto.git .
npm install
- Abrir XAMPP y asegurarse que el puerto sobre el cual se está ejecutando es el
3306
- Inicializar los servicios de Apache y MySQL
- Abrir el panel de control del servicio MySQL
- Generar una nueva base de datos llamada
delilah_resto
desde el panel de control - Abrir el archivo en
/database/queries.sql
y dentro delpanel de control
de la base de datos ejecutar la serie de queries del archivo o importar el mismo.
Abrir el archivo en /server/server.js
desde node
node server
Testear los endpoints provistos desde postman para poder hacer uso de la API y base de datos generadas
(Asegurarse de seleccionar el entorno de desarrollo Delilah Restó
para poder acceder a las variables globales)
Project #3 from the Full Stack Web Development career in Acámica.
- Node.js
- Nodemon
- Express
- JWT for Token Authentication
- MySQL
- Sequelize
- Postman for endpoint handling & testing
- Swagger for API documentation
The goal of the project was to generate the backend for a food app called "Delilah Resto", generating the architecture, relational databases, functional endpoints and documentation for the project.
Open the api-docs.yaml
file and copy it's content in Swagger or import it from the options panel.
A list of the available endpoints and methods will be listed with the necessary information to use the API
Clone the repository from the link.
You can also clone it from your terminal:
git clone https://github.com/guido732/delilah-resto.git .
npm install
- Open XAMPP and make sure the port being used is number
3306
- Start the Apache and MySQL services
- Open the Admin panel for the MySQL Service
- Create a new database called
delilah_resto
from the panel - Open the file located in
/database/queries.sql
and from thecontrol panel
input via the SQL input section the content to create the tables and populate them with mock values
From your node terminal open the file located in /server/server.js
node server
You can now test the provided endpoints from the Postman collection to make use of the API and database connection
(Make sure the Delilah Restó
enviroment is selected so you can access the enviroment variables)