Skip to content

Flapjacck/FareShare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FareShare

Ride sharing app

Quick Start

Prerequisites

  • Python 3.8+ (the script will automatically create a virtual environment)
  • Node.js 16+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/Flapjacck/FareShare.git
cd FareShare

# One-time setup (installs npm dependencies for root and frontend)
npm run setup

Running the Application

Option 1: Start Both Servers (Recommended)

npm start
# or
npm run dev

The script will automatically:

  • Create a Python virtual environment (if not present)
  • Upgrade pip to the latest version
  • Install backend dependencies from requirements.txt
  • Start the FastAPI backend on http://localhost:8000
  • Start the Vite frontend on http://localhost:5173

Option 2: Start Servers Individually

# Backend only
npm run dev:backend

# Frontend only  
npm run dev:frontend

Project Structure

  • backend/ - FastAPI backend server
  • frontend/ - React + Vite frontend

For more detailed information:

Making changes to the code (Git workflow)

  1. Before you do anything, make sure you're on the main branch and your code is up to date:
git switch main
git pull origin main
  1. Make a new branch to make your changes on:
git checkout -b branch-name
  1. Make your changes. You can check status with:
git status
  1. Add your changes to the commit. Add the file path to the files you want to commit. Example:
git add public/home.html server.js
  1. Commit your added changes:
git commit -m "text explaining commit changes"
  1. Push. You might have to push upstream; if so, follow the terminal instructions (it will show the exact command):
git push
  1. Repeat from step 1 after pushing your changes so you can make future changes.

About

Ride Sharing site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6