Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NEXT_PUBLIC_BASE_URL=
OVERCLICKED_DB_DIR=.
OVERCLICKED_PASSWORD=changeme
Binary file added .github/images/admin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/preparation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/public.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/register.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ next-env.d.ts

db.json
db.sqlite

.env
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,52 @@ Open http://localhost:3000 to view it in the browser.
- [Next.js](https://nextjs.org/)
- [TypeScript](https://www.typescriptlang.org/)
- [SCSS](https://sass-lang.com/)

## Features

This app includes the following views:

- Admin Dashboard: Overview of all events and their order statuses.
- Preparation View: Interface for staff to prepare orders and manage inventory.
- Register View: Interface for staff to take orders and serve customers.
- Public View: Customers can see the menu and ready orders.

### Admin Dashboard

![dashboard](./.github/images/admin.png)

The Admin Dashboard provides:

- Statistics on orders (total, prepared, served)
- Inventory status (stocks left)
- Register activity (orders taken per register)
- All orders listed with their statuses

### Preparation View

![preparation](./.github/images/preparation.png)

The Preparation View allows staff to:

- See incoming orders in real time
- Mark orders as prepared
- Add more stock for items

### Register View

![register](./.github/images/register.png)

The Register View allows staff to:

- Take new orders from customers
- Cancel orders if needed
- Mark orders as served

### Public View

![public](./.github/images/public.png)

The Public View allows customers to:

- View the menu with available items
- See orders that are ready for pickup
30 changes: 15 additions & 15 deletions migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,32 @@ CREATE TABLE IF NOT EXISTS menus(
INSERT INTO menus(id, name, description, totalStocks, stocks)
VALUES(
0,
'Temptation',
'Tomates séchées, Mozza, Pesto',
145,
145
'Spicy Red',
'Sambal-oelek, Grilled vegetables (peppers, eggplant, zucchini), Crispy onions',
75,
75
) ON CONFLICT DO NOTHING;
INSERT INTO menus(id, name, description, totalStocks, stocks)
VALUES(
1,
'Chaos',
'Chèvre, Miel',
165,
165
'Pesto Green',
'Pesto, Sun-dried tomatoes, Mozzarella',
75,
75
) ON CONFLICT DO NOTHING;
INSERT INTO menus(id, name, description, totalStocks, stocks)
VALUES(
2,
'Oblivion',
'Champigons, Oignons caramelisés, Pesto',
95,
95
'Goaty Blue',
'Goat cheese, Honey',
75,
75
) ON CONFLICT DO NOTHING;
INSERT INTO menus(id, name, description, totalStocks, stocks)
VALUES(
3,
'Craving',
'Crunchy Ovo',
'Ovomaltine',
95,
95
75,
75
) ON CONFLICT DO NOTHING;
Loading
Loading