Ride sharing app
- Python 3.8+ (the script will automatically create a virtual environment)
- Node.js 16+
- npm or yarn
# 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 setupnpm start
# or
npm run devThe 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
# Backend only
npm run dev:backend
# Frontend only
npm run dev:frontendbackend/- FastAPI backend serverfrontend/- React + Vite frontend
For more detailed information:
- 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- Make a new branch to make your changes on:
git checkout -b branch-name- Make your changes. You can check status with:
git status- 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- Commit your added changes:
git commit -m "text explaining commit changes"- Push. You might have to push upstream; if so, follow the terminal instructions (it will show the exact command):
git push- Repeat from step 1 after pushing your changes so you can make future changes.