InstaFood is a full-stack web application designed to simplify food ordering and delivery. The app includes user authentication, cart management, order tracking, and responsive design to provide users with a seamless experience. Built using the MERN stack (MongoDB, Express.js, React, Node.js).
- User Authentication: Secure signup and login using JWT tokens.
- Cart Management: Add, update, and remove items from the cart.
- Order Management: Track current and past orders.
- Responsive Design: Optimized for both mobile and desktop views.
- React.js with Hooks
- Styled Components for styling
- Axios for HTTP requests
- React Router for navigation
- Node.js with Express.js
- JWT for user authentication
- Bcrypt.js for password hashing
- MongoDB Atlas: This project uses MongoDB Atlas, a cloud-based MongoDB service, for database management. MongoDB Atlas provides a fully-managed database
- Vercel: Frontend and backend hosted on Vercel.
-
Clone the repository:
git clone https://github.com/Raj-kansagra/InstaFood.git cd InstaFood
-
Install dependencies:
cd client npm install cd ../server npm install
-
Create a .env file in the server directory and add the following environment variables:
MONGODB_URL=your-mongodb-atlas-connection-string JWT=your-jwt-secret
-
Update API base URL:
-
In
client/src/api/index.js
, make sure to use the appropriate baseURL for your environment. -
For local development:
//const API = axios.create({ //baseURL: "https://insta-food-backend.vercel.app/api", //}); const API = axios.create({ baseURL: "http://localhost:8080/api", });
-
-
Run the application:
-
In the
server
directory, run the backend:npm run start
-
In the
client
directory, run the frontend:npm start
-
-
Access the application in your browser: http://localhost:3000/
We welcome contributions to improve the Instafood. If you'd like to contribute, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any issues or feature requests, please open an issue on the GitHub repository: https://github.com/Raj-kansagra/InstaFood.git
Happy Coding!