Skip to content

larissaperinoto/fast-delivery

Repository files navigation

Fast Delivery

Trybe is a technology school focused on training Web Developers and the Fast Delivery project was proposed as an activity to improve studies on back-end development.

The project was developed with the following team: Raissa Vasconcelos, Rafael Alencar, Luiz Junior, Yan Chapetta.

Description

Fast Delivery is a Full Stack application to support a beer distributor. This app supports customers, sellers and the administrator person.

Costumer

As a consumer you must login or register, if you do not have an account, then you will have access to a list of products that can be added to the cart. When choosing the products, you will be redirected to the checkout screen to check your order and then you will be able to finalize it. You will also have access to your entire order history.

Seller

If you are a registered seller you can login and access to your entire order history. When you click in a order, you can see the order details.

Administrator

If you are a administrator user, you can login and access the management sellers page. You can see all the sellers and customers and add new ones.

Technologies and Tools

HTML CSS3 Material ui JavaScript ReactJS React-router ESlint Jest Mysql NodeJS Docker Express Sequelize jwt mocha

Front-end

Back-end

Back-end tests

Documentation

Code alignment

⚙️ How to use

To run the application, start by making a clone of the repository

 git clone git@github.com:larissaperinoto/delivery-app.git

Navigate to the root folder of the project

cd delivery-app
Running with Docker

Obs: To run the application this way you must have Docker installed on your machine.


In the root of the project, upload the fast_delivery_frontend, fast_delivery_backend and fast_delivery_db containers using docker-compose.

  docker-compose up -d

Acess the containers logs:

  frontend: docker logs --details fast_delivery_frontend
  backend: docker logs --details fast_delivery_backend
  bd: docker logs --details fast_delivery_db

How to login

Login as a customer

To log in as a user you must register again by clicking on "I don't have an account yet"

Login as a seller

To log in as a seller, use the following credentials

  email: seller@email.com
  passsword: secret_seller_password
Login as an administrator

To log in as a seller, use the following credentials

  email: admin@email.com
  passsword: secret_admin_password

API Documentation

You can view the API documentation by accessing the /docs route or by clicking here.


Develop by Larissa Perinoto, © 2022.