Butcher is an online butcher shop application built with React, TypeScript, and Vite for the frontend, and Express and MongoDB for the backend. The application allows users to browse products, add them to the cart, and place orders. Admins can manage product prices and view orders.
- Browse products (Chicken, Mutton, Eggs)
- Add products to the cart
- Update product quantities in the cart
- Place orders
- Admin panel to manage product prices and view orders
- Node.js (v14 or higher)
- npm or yarn
- MongoDB
- Navigate to the
backend
directory:
cd backend
- Install dependencies:
npm install
- create a .env file in the backend directory and ad your MongoDB connection string:
DB=<your-mongodb-connection-string>
PORT=5000
- start the backend server:
npm run dev
Admin And Client Frontend Setup
- Navigate to the admin/client directory:
cd admin
# or
cd client
- Install dependencies:
npm install
- start development server:
npm run dev
-
Open your browser and navigate to http://localhost:5173 for client frontend.
-
Open your browser and navigate to http://localhost:5174 for admin frontend.
-
The backend server will be running on http://localhost:3000
.
├── admin
│ ├── .gitignore
│ ├── components.json
│ ├── eslint.config.js
│ ├── index.html
│ ├── package.json
│ ├── postcss.config.js
│ ├── public
│ ├── README.md
│ ├── src
│ ├── tailwind.config.js
│ ├── tsconfig.app.json
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── backend
│ ├── .env
│ ├── controllers
│ ├── database
│ ├── functions
│ ├── middleware
│ ├── modals
│ ├── package.json
│ ├── routes
├── client
│ ├── .env
│ ├── .gitignore
│ ├── components.json
│ ├── eslint.config.js
│ ├── index.html
│ ├── package.json
│ ├── postcss.config.js
│ ├── public
│ ├── README.md
│ ├── src
│ ├── tailwind.config.js
│ ├── tsconfig.app.json
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── .gitignore
└── README.md
- Frontend:
- React
- Typescript
- vite
- Tailwind CSS
- Axios
- Backend:
- Express
- MongoDB
- Mongoose
- dotenv
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes
This project is licensed under the MIT License.