Skip to content

It's a dynamic dashboard designed for snack bars/pizzerias that allows the user to create new restaurants, log into their account, and track order data as well as financial data for the day and month.

Notifications You must be signed in to change notification settings

albertoaraujoo/food-shop-dashboard

Repository files navigation

Food-Shop-Dashboard

Screenshot of the dashboard page

Screenshot of the orders page

🔥 Introduction

The project helps restaurant and pizzeria owners better control their business. Users have access to order data, can change statuses, and filter them. Additionally, they obtain financial data for the day, month, and more. Graphs are also used to represent this data.

The front end was built with React, using other technologies such as shadcn/ui, Tailwind CSS, Axios, React Query, and Zod. The back end was built with Bun, using Docker for deployment, and a PostgreSQL database.

Unit tests were conducted with Jest and RTL, E2E tests were conducted with Playwright and MSW for the mocks.

⚙️ Prerequisites

Before you begin, make sure you have Bun, npm and docker installed on your machine.

You will also need a code editor, such as VSCode or Sublime Text, to work on the project.

🔨 Installation Guide

Steps to install:

// 1 - Clone the back-end repository:
git clone https://github.com/albertoaraujoo/dt-money.git](https://github.com/rocketseat-education/pizzashop-api.git

// 2 - create a ".env.local" file and add the code:
API_BASE_URL="http://localhost:3333"
AUTH_REDIRECT_URL="http://localhost:5174"
DB_URL="postgreesql://docker@localhost:5432/pizzashop"
JWT_SECRET_KEY="my-super-secret-key"
RESEND_API_KEY="."

// 3 - run docker and check if it is properly running
docker compose up -d
docker ps

// 4 - Run Bun:
bun i
bun migrate
bun seed
bun dev

// 5 - front-end config
git clone https://github.com/albertoaraujoo/food-shop-dashboard.git
cd /pizza-web-shop
npm i
npm run dev

You can sign in the app using the email: "diego.schell.f@gmail.com", but it can be changed in seed.ts file if you prefer. After logging in with this email, simply go to the terminal of the running backend, copy the provided URL, and paste it into your browser.

📦 Technologies Used:

  • TypeScript
  • React
  • Shadcn/Ui
  • Axios
  • TailwindCSS
  • React-Query
  • React Hook Form
  • Phosphor-React
  • PlayWright
  • Zod
  • Jest
  • React-Testing-Library

About

It's a dynamic dashboard designed for snack bars/pizzerias that allows the user to create new restaurants, log into their account, and track order data as well as financial data for the day and month.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published