Logo Lanfrica

fekrewoldt-crypto/gondar-fuel-tracke

Domain:

digital infrastructure

Record type:

software
Creator:
fek
Host:
Real-time fuel availability tracking platform for Gondar, Ethiopia. # Gondar Fuel Management System Real-time fuel availability tracking platform for Gondar, Ethiopia. ## πŸš€ Deployment ### GitHub Setup 1. **Create a new GitHub repository** - Go to github.com - Name it something like `gondar-fuel-tracker` - Make it public or private (your choice) - Don't initialize with README (we already have one) 2. **Connect your local project to GitHub** ```bash cd /Users/fikrewoldtadegegn/Desktop/Proto git init git add . git commit -m "Initial commit - Gondar Fuel Management System" # Add your GitHub repository as remote git remote add origin github.com # Push to GitHub git branch -M main git push -u origin main ``` ### Vercel Deployment 1. **Install Vercel CLI** (if not already installed) ```bash npm install -g vercel ``` 2. **Login to Vercel** ```bash vercel login ``` 3. **Deploy to Vercel** ```bash cd /Users/fikrewoldtadegegn/Desktop/Proto vercel ``` 4. **Follow the prompts** - Set up and deploy? Yes - Link to existing project? No (create new) - Project name: gondar-fuel-tracker (or your choice) - Directory: ./ (current directory) - Settings: Use defaults 5. **Connect to GitHub** (recommended) - Go to vercel.com - Find your project - Go to Settings β†’ Git - Connect to your GitHub repository - Enable automatic deployments on push ## πŸ“ Project Structure ``` Proto/ β”œβ”€β”€ api/ β”‚ β”œβ”€β”€ data.js # Shared data (services, reports) β”‚ └── services.js # Main API handler β”œβ”€β”€ index.html # Frontend application β”œβ”€β”€ server.js # Local development server β”œβ”€β”€ package.json # Node.js dependencies β”œβ”€β”€ vercel.json # Vercel configuration └── README.md # This file ``` ## πŸ”§ API Endpoints - `GET /api/services` - Get all services (filter by `?type=fuel_station`) - `GET /api/services/:id` - Get specific service by ID - `POST /api/report` - Submit status update - `GET /api/stats` - Get aggregated statistics - `GET /api/ …