In this project, our main objectives are to:
- 🔧 Handle Node.js
- 🚀 Understand how to interact with Express.js
- 📚 Learn to use Express.js
- 📦 Handle NPM
- 🏦 Learn to use MySQL with Express
- 📦 Create the database endpoint.
- 📦 Create the following tables using Express and MySQL, just as we've seen in class:
- 📦 Products Table
- 🗂️ Categories Table
- 📤 Create an endpoint to add a new product and add 2 new products from Postman.
- 📤 Create an endpoint to create a category and add 2 new categories from Postman.
- 🔄 Create an endpoint to update a product.
- 🔄 Create an endpoint to update a category.
- 📦 Create an endpoint that shows all the products.
- 🗂️ Create an endpoint that shows all the categories.
- 🗂️ Create an endpoint that shows all the products with their respective categories.
- 🆔 Create an endpoint where you can select a product by its ID.
- ⬇️ Create an endpoint that shows the products in descending order.
- 🆔 Create an endpoint where you can select a category by its ID.
- 🔍 Create an endpoint where you can search for a product by its name.
- 🚮 Create an endpoint where you can delete a product by its ID.
🧩 MVC
- 📦 Create the following tables using Express and MySQL, as we've seen in class:
- 📦 Users Table
- 🗂️ Orders Table
- 📤 Create an endpoint to add a new user and add 2 new users from Postman.
- 📤 Create an endpoint to create an order and add 2 new orders from Postman.
- 🔄 Create an endpoint to update a user.
- 📦 Create an endpoint that shows all the users.
- 🗂️ Create an endpoint that shows all the orders.
- 🗂️ Create an endpoint that shows all the users with their respective orders.
- 🆔 Create an endpoint where you can select a user by their ID.
- 🚮 Create an endpoint where you can delete a user by their ID.
📁 Implement MVC in Orders
- 📁 Create an
orders.jsfile within aroutesfolder that contains all the order routes. - 📁 Create an
OrderController.jsthat contains all the actions related to orders.
📁 Implement MVC in Users
- 📁 Create a
users.jsfile within aroutesfolder that contains all the user routes. - 📁 Create a
UserController.jsthat contains all the actions related to users.
Completed by Vero Polegre and Francesc Alberola 🤝👨💻👩💻
