Zaayka is a comprehensive food delivery platform designed to connect users with their favorite restaurants. It features a seamless user interface, efficient backend processes, and an admin panel for order and food management.
The project is divided into three main sub-folders:
- frontend: Contains the client-side code, including the user interface and user experience elements.
- backend: Manages the server-side logic, database interactions, and API endpoints.
- admin: Interface for the administrator to manage orders and food items.
The application is deployed and live at: zaayka.onrender.com
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
Make sure you have the following installed:
-
Clone the repository
git clone https://github.com/ktejas04/zaayka.git cd zaayka -
Install dependencies for the frontend
cd frontend npm install -
Install dependencies for the backend
cd ../backend npm install -
Install dependencies for the admin panel
cd ../admin npm install
-
Start the frontend
cd frontend npm run devThis will run the frontend on
http://localhost:5173. -
Start the backend
cd ../backend npm run serverThis will run the backend server on
http://localhost:8000. -
Start the admin panel
cd ../admin npm run devThis will run the admin panel on
http://localhost:5174.
Make sure to set up the necessary environment variables for the backend. Create a .env file in the backend folder with the following content:
PORT=8000
CORS_ORIGIN=*
MONGODB_URI=your_mongodb_uri
JWT_SECRET=_your_jwt_secret
STRIPE_SECRET_KEY=your_stripe_secret_key
FRONTEND_URL=http://localhost:5173
CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secret
ADMIN_ID=your_admin_id
ADMIN_PASSWORD=your_admin_password
For Admin ID and password, you can set them to anything you wish. They will be your credentials for accessing the admin panel.