HenriquedaFonte / foodexplorer_API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Food Explorer API Restful - Rocketseat

πŸ’» About

API Restful - The application that we will develop is a digital menu for a fictional restaurant, known as foodExplorer.

I used the following topics:

  • Express
  • Routes and http method
  • Params
  • Controllers
  • Middleware
  • SQL
  • Migrations
  • Query Builder
  • Knex
  • Cors
  • JWT
  • Disk Storage

βš™οΈ Features

  • Application developed based on a Figma project
  • A structured project, with a good organization of folders, division of components in the front-end, etc.
  • Users must authenticate themselves to enter the application through the login screen, you can apply what you learned in JWT authentication classes. Authentication must be validated with a password.
  • Admin can add or delete an dish or edit an existing dish.
  • Give your functions and variables meaningful names: work with Clean Code concepts a bit.
  • Admin, dishes and users data will be stored in a database.
  • Possibility to search by dish name, ingredients or favorite dish.
  • With CSS, I created some animations like hover and button click.
  • User can add items to the cart by clicking the add button. The amount is controlled by the β€œ-” and β€œ+” buttons;
  • Clicking on Cart, the user will be redirected to a screen where he will see his order, the sum and the payment methods;
  • User will be able to delete a dish from the cart and the total amount of the order should be updated automatically;
  • User can mark a dish as a favorite, just click on the heart that appears next to each one;
  • Admin will view and control the status of each order, through a select field. Orders will appear in a table when you click Orders;

Deploy

Food Explorer


πŸš€ How it works

This project is divided into two parts:

  1. Backend (food-explorer-backend folder)
  2. Frontend (foodexplorer_API folder)

πŸ’‘ The Frontend needs the Backend to be running to work.

Pre-requisites

Before you begin, you will need to have the following tools installed on your machine: [Git] (https://git-scm.com), [Node.js] (https://nodejs.org/en/). In addition, it is good to have an editor to work with the code like [VSCode] (https://code.visualstudio.com/)

🎲 Running the Server (Backend)

# Clone this repository
$ git clone https://github.com/HenriquedaFonte/foodexplorer_API.git

# Access the project folder in your terminal
$ cd foodexplorer_API

# Install the dependencies
$ npm install

# run the migration and seed
$ npm migrate
$ npm seed

# Run the application in development mode
$ npm run dev

# Admin login
$ email: admin@email.com
$ password: 123

# The Server will start at port: 3333 - go to http://localhost:3333

🧭 Running the web application (Frontend)

# Clone this repository
$ git clone https://github.com/HenriquedaFonte/foodexplorer_front.git

# Access the project folder in your terminal
$ cd foodexplorer_front

# Install the dependencies
$ npm install

# Run the application in development mode
$ npm run dev

πŸ›  Tech Stack

The following tools were used in the construction of the project:


🦸 Author

Henrique da Fonte
Henrique da Fonte

πŸ“ License

This project is under the license MIT.

Made by Henrique da Fonte πŸ‘‹πŸ½ Get in Touch!


About


Languages

Language:JavaScript 99.9%Language:Shell 0.1%