Skip to content

A full-stack web app that displays Z Energy fuel station locations, available services, and real-time fuel prices on an interactive map with regional clustering.

Notifications You must be signed in to change notification settings

smesi36/Z-Station-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Z Energy Station Locator App

A full-stack web app that displays Z Energy fuel station locations, available services, and real-time fuel prices on an interactive map with regional clustering.

📖 Table of Contents

📌 About The Project

This is a full-stack application built with React and Node.js, using a MongoDB database and Google Maps integration. The app allows users to search for Z Energy fuel stations by city or service (e.g. car wash), view real-time fuel prices, and interact with a responsive map featuring regional clustering.

📁 Folder Structure

Z-Station-App/
├── zApp-frontend/       # React client (Vite)
│   ├── public/
│   ├── src/
│   │   ├── assets/
│   │   ├── components/
│   │   ├── images/
│   │   └── ...
│   └── ...
├── zApp-backend/        # Express.js server
│   ├── config/
│   ├── models/
│   ├── routes/
│   └── ...
├── README.md
└── .gitignore

(back to top)

🛠️ Built With

Frontend

  • React
  • Vite
  • React Router
  • Axios
  • Google Maps Platform

Backend

  • Node.js
  • Express
  • Mongoose
  • MongoDB
  • CORS

(back to top)

⚙️ Getting Started

To get a local copy up and running, follow these steps:

📦 Prerequisites

  • npm
    npm install npm@latest -g
  • Node.js (v14 or later)

📥 Installation

  1. Clone the repo
    git clone [https://github.com/your_username/zapp.git](https://github.com/your_username/zapp.git)
  2. Navigate to the frontend directory and install NPM packages
    cd zapp/zapp-frontend
    npm install
  3. Navigate to the backend directory and install NPM packages
    cd ../zapp-backend
    npm install
  4. Create a .env file in both the zapp-frontend and zapp-backend directories. You'll need to add your configuration variables here (e.g., database connection strings, API keys).
    • Example zapp-backend/.env:
      PORT=8000
      DATABASE_URL=your_mongodb_connection_string
      
    • Example zapp-frontend/.env:
      VITE_API_BASE_URL=http://localhost:8000
      VITE_Maps_API_KEY=your_Maps_api_key
      

(back to top)

🚀 Usage

To run the app locally:

Start the backend server:

cd zApp-backend
npm run dev

Start the frontend dev server:

cd zApp-frontend
npm run dev

Visit http://localhost:5173 to view the app.

Features:

  • 🔍 Search stations by city or service
  • ⛽ Toggle fuel price display and filter by fuel type
  • 🗺️ Zoom in/out to reveal clustered or individual stations on the map

(back to top)

🤝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch
git checkout -b feature/YourFeature
  1. Commit your changes
git commit -m 'Add YourFeature'
  1. Push to your fork
 git push origin feature/YourFeature
  1. Open a Pull Request

📫 Contact

Erekle Sesiashvili GitHub | LinkedIn
Email: [email protected]

(back to top)

About

A full-stack web app that displays Z Energy fuel station locations, available services, and real-time fuel prices on an interactive map with regional clustering.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •