Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alaanvv/v-menu
Digital menu platform
https://github.com/alaanvv/v-menu
fastify menu svelte
Last synced: 12 days ago
JSON representation
Digital menu platform
- Host: GitHub
- URL: https://github.com/alaanvv/v-menu
- Owner: alaanvv
- Created: 2024-07-10T16:09:24.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-01T15:37:19.000Z (5 months ago)
- Last Synced: 2024-12-30T21:45:53.044Z (12 days ago)
- Topics: fastify, menu, svelte
- Language: TypeScript
- Homepage: https://v-menu.onrender.com
- Size: 3.04 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Summary
- [Database](#database)
- [Todo](#todo)# Database
```prisma
model Menu {
id String @id @default(cuid())
username String
password String
name String
phone String?
whatsapp String?
address String?
path Stringcategories Category[]
session Session[]@@map("menus")
}model Category {
id String @id @default(cuid())
menu_id String
name String
pos Int @default(autoincrement())menu Menu @relation(fields: [menu_id], references: [id], onDelete: Cascade)
subcategories Subcategory[]@@map("categories")
}model Subcategory {
id String @id @default(cuid())
category_id String
name String
pos Int @default(autoincrement())category Category @relation(fields: [category_id], references: [id], onDelete: Cascade)
items Item[]@@map("subcategories")
}model Item {
id String @id @default(cuid())
subcategory_id String
name String
description String?
price_in_cents Decimal
pos Int @default(autoincrement())subcategory Subcategory @relation(fields: [subcategory_id], references: [id], onDelete: Cascade)
@@map("items")
}model Session {
id String @id @default(cuid())
menu_id Stringmenu Menu @relation(fields: [menu_id], references: [id], onDelete: Cascade)
@@map("sessions")
}
```# Todo
- [x] Setup database
- [x] Create management routes
- [x] Frontend to manage menus
- [x] Create order features
- [x] Write missing tests
- [x] Account system> FINAL-BOSS
- [x] Render menus on server side- [x] Make menus able to be single-category
- [x] Database field
- [x] Make it changeable
- [x] Edit frontend to match this