Fuel Price Locator is an innovative application designed to help users find the most affordable petroleum products in their vicinity. This platform leverages user-generated data to provide real-time updates on fuel prices, enabling users to make informed decisions about where to purchase fuel.
- Real-Time Price Updates:
- Users can view the latest fuel prices at different stations in their area.
- Prices are updated in real-time through user contributions.
- User Contributions:
- Anyone can update fuel prices at stations they visit.
- The app encourages users to contribute by making the process quick and easy.
- Search Functionality:
- Users can search for fuel prices by location, fuel type, or specific gas stations.
- Filters can be applied to sort by the cheapest prices, closest locations, and more.
- Community Collaboration:
- A community-driven approach ensures that the data remains current and comprehensive.
- Users can rate and comment on gas stations, providing additional insights (to be implemented in future).
- Price Alerts:
- Users can set up alerts to notify them when fuel prices drop below a certain threshold (to be implemented in future).
- Notifications can be tailored to specific locations or fuel types (to be implemented in future).
- User Profiles (to be implemented in future):
- Each user has a profile that tracks their contributions.
- Profiles can display badges and achievements to recognize active contributors.
To run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/alchemistlowkey/fuelpricelocator.git
- Navigate to the project directory:
cd fuelpricelocator
- Install the dependencies:
npm install
- Start the svelte/front-end server
npm run dev
Navigate to localhost:8080.
To allow connections from other computers, edit the sirv
commands in package.json to include the option --host 0.0.0.0
.
- Navigate to the backend directory
cd backend
- Start the NodeJS/Express Server
npm start
Now your front-end and backend should be integrated as well as your mongoDB database connected Don't forget to create a .env file to store your variables like.