Digital Menu for Cafes and Restaurants
Features β’ Tech Stack β’ Getting Started β’ Project Structure β’ Contributing
- π Open Source: Completely free and open-source. No hidden costs, no premium features.
- π Actively Maintained: Everything is being updated and developed continuously.
- β‘ Fast & Simple: Built with cutting-edge technology for maximum performance.
- π¨ Modern Stack: Uses the latest web technologies for the best developer experience.
|
|
- Component
- Filter
- Edit modal
- Routing
- Type share
- Auto redirect to dashboard
- Seo
- Performance
- Note order
- Payment
- RTL Support
- Multi lang
- Order management system
- QR code generation for tables
- Real-time order notifications
- Analytics dashboard
- Dark mode
- PWA support
- Dockerize
- Admin Dashboard
- Multi theme
- Customer reviews and ratings
Swift-Food/
βββ π₯οΈ client/ # Frontend React Application
β βββ src/
β β βββ components/ # Reusable UI components
β β β βββ layout/ # Header, Footer, Sidebar
β β β βββ menu/ # Menu items, categories
β β β βββ notebook/ # Cart/notebook functionality
β β β βββ owner/ # Restaurant owner panel
β β β βββ ui/ # Base UI components (buttons, inputs)
β β βββ pages/ # Route pages
β β β βββ owner/ # Owner dashboard pages
β β β βββ ... # Customer-facing pages
β β βββ services/ # API service layer
β β βββ store/ # Zustand state management
β β βββ types/ # TypeScript type definitions
β β βββ lib/ # Utility functions
β βββ public/ # Static assets
β βββ vite.config.ts # Vite configuration
β βββ package.json
β
βββ βοΈ server/ # Backend Hono Application
β βββ src/
β β βββ config/ # Database configuration
β β βββ controllers/ # Request handlers
β β βββ middleware/ # Auth, error handling, validation
β β βββ models/ # MongoDB schemas
β β βββ routes/ # API route definitions
β β βββ validators/ # Zod validation schemas
β β βββ index.ts # Server entry point
β βββ uploads/ # Uploaded images
β βββ package.json
β
βββ π turbo.json # Turborepo configuration
βββ π package.json # Root package.json
βββ π README.md # You are here!Before you begin, ensure you have the following installed:
-
Clone the repository
git clone https://github.com/mrrSwift/Swift-Food.git cd Swift-Food bun install cd server bun install cd client bun install # or use docker docker compose up -d
Set up environment variables
Create .env file in apps/server/:
MONGODB_URI=mongodb://localhost:27017/swift_food
JWT_SECRET=your-super-secret-jwt-key
JWT_EXPIRE=30d
PORT=3000
CORS_ORIGIN=http://localhost:5173
ZARINPAL_SANDBOX=true
FRONTEND_URL=http://localhost:5173
ZARINPAL_MERCHANT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
STRIPE_SECRET_KEY=sk_test_...
STRIPE_PUBLIC_KEY=pk_test_... # for frontendCreate .env file in apps/client/:
VITE_API_URL=http://localhost:3000
VITE_STRIPE_PUBLIC_KEY=pk_test_...
VITE_PAYMENT_METHOD=stripe
VITE_LANG=faRun in Dev
# Run with turbo
bun dev
# or run Separately
bun dev:client
bun dev:server
# or run standalone
# in two console run Separately
cd server
bun dev
cd client
bun dev
+ UI/UX Improvements
+ Bug fixes
+ Documentation
+ Test coverage
+ Performance optimization
- Currently not accepting major architectural changesCurrent State
π‘ Alpha Stage: Core features working, but needs refinement
π‘ API: Stable but may have breaking changes
π‘ UI: Functional but needs polish
π΄ Testing: Not yet implemented
Image upload needs better error handling
Mobile responsiveness needs improvement in owner panel
No loading skeletons for data fetching
Missing form validation feedback
No offline support
This project is licensed under the MIT License - see the LICENSE file for details.
Bun - Incredibly fast JavaScript runtime
Hono - Lightweight web framework
Vite - Next generation frontend tooling
Tailwind CSS - Utility-first CSS framework
Radix UI - Unstyled, accessible components
MongoDB - Flexible document database
Issues: GitHub Issues
Discussions: GitHub Discussions
Email: amirshayan1381@yahoo.com
Made with β€οΈ by MrrSwift