Beverage delivery platform for the fictitious distributor Dona Birita.
- Perform login;
- Perform registration;
- Choose to add items to the cart;
- Place order;
- Monitor the status of orders placed;
- Change order status to "Delivered";
- Perform login;
- track orders;
- Change the status of orders to "Prepare Orders" and "Out for Delivery";
- Perform login;
- View users;
- Register new users;
- Delete users;
In this project, We were able to:
- Develop a Full Stack application;
- Integrate front-end and back-end;
- Build a REST API;
- Organize the code and the general architecture of the application;
- Work together, using daily meetings and Kanban;
JavaScript | Express | Sequelize | Node.JS | MySQL | JWT | Docker |
---|---|---|---|---|---|---|
|
|
|
|
|
|
|
JavaScript | HTML5 | CSS3 | React | SASS |
---|---|---|---|---|
|
|
|
|
|
Jest | RTL | Mocha | Chai | Sinon |
---|---|---|---|---|
|
|
|
|
|
Client default port: 3000
API default port: 3001
Database default port: 3002
- Clone the repository and enter it
git clone git@github.com:ImVictorM/Dona-Birita.git && cd Dona-Birita
- Get the containers running
docker-compose up -d
- Enter the api container to create the database
docker exec -it api-delivery sh
- Create and populate the database
npm run db:reset
- Access the page on your browser: http://localhost:3000/
You must have node and MySQL installed
- Install the dependencies (both back-end and front-end)
npm install
-
Rename the file
.env.example
to.env
in both front-end and back-end directory (change it as you like) -
Create and populate the database
npm run db:reset
- Start the server
npm run start
- Access the page on your browser: http://localhost:3000/
Running all test files:
npm test
Running back-end test files:
npm run test:backend
Running front-end test files:
npm run test:frontend
Application test coverage:
npm run test:coverage
Back-end test coverage:
npm run test:backend:coverage
Front-end test coverage:
npm run test:frontend:coverage