Hunger Point is a food ordering application built with Vue 3 and Vite. It allows users to browse, order, and rate food items. The application features a user-friendly interface and integrates with a backend API for data management.
- User registration and login
- Browse and search for food items
- View detailed information about food items
- Order food items
- Rate and review food items
- Interactive map view to locate food items
- Responsive design
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://github.com/Satyampatil513/HungerPoint.git cd HungerPoint -
Install the dependencies:
npm install
-
Create a
.envfile in the root directory and add the necessary environment variables:VITE_API_BASE_URL=https://navobackend.onrender.com/api
To start the development server, run:
npm run devThis will start the application at http://localhost:5173.
To build the project for production, run:
npm run buildThe production-ready files will be generated in the dist directory.
To preview the production build locally, run:
npm run previewHungerPoint/
├── public/ # Static assets
├── src/
│ ├── assets/ # Project assets (images, fonts, etc.)
│ ├── components/ # Vue components
│ ├── pages/ # Vue pages
│ ├── store/ # Vuex store
│ ├── App.vue # Main App component
│ ├── main.js # Entry point for the application
│ └── router.js # Vue Router configuration
├── .env # Environment variables
├── .gitignore # Git ignore file
├── index.html # Main HTML file
├── package.json # NPM package configuration
├── README.md # Project README file
└── vite.config.js # Vite configuration
The application interacts with the following API endpoints:
GET /api/showfood/:id- Fetch food items for a specific userGET /api/showallfood- Fetch all food itemsGET /api/showallorder/:id- Fetch all orders for a specific userPUT /api/addrating/:id/:rating- Add a rating for a specific orderPOST /api/register- Register a new userGET /api/bookfood/:foodId/:servings/:consumerId- Book food for a user
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.