An efficient and user-friendly application to plan your perfect day touring San Francisco’s top attractions. The app combines a smart backend API to optimize routes and a modern frontend interface for ease of use.
- Curated SF Attractions: Explore iconic locations like Chinatown, Pier 39, and the Palace of Fine Arts.
- Smart Route Planning: Optimize your travel route with minimal time and maximum fun.
- Flexible Travel Options: Choose between driving, public transit, or walking.
- Frontend: React (hosted on Vercel)
- Backend: Flask (hosted on Railway)
- Node.js (for the frontend)
- Python 3.11+ (for the backend)
- Pip (Python package manager)
git clone https://github.com/Ifeoluwakolopin/lba.git
cd lba
pip install -r requirements.txt
python api.py
Your Flask backend will start at http://127.0.0.1:5000
.
Navigate to the optimal-route-app
directory:
cd optimal-route-app
npm install
In the optimal-route-app
directory, create a .env
file with the following:
REACT_APP_API_BASE_URL=http://127.0.0.1:5000
npm start
Your React app will start at http://localhost:3000
.
- Open the frontend in your browser: http://localhost:3000.
- The frontend will make API calls to the Flask backend running at
http://127.0.0.1:5000
.
We welcome contributions to enhance the app! Follow these steps to contribute:
Click the "Fork" button on the top-right corner of the repository.
git clone https://github.com/your-username/sf-tour-planner.git
cd sf-tour-planner
Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Edit the code to add your feature or fix bugs.
- Ensure you write clear, readable, and well-documented code.
- Run the frontend and backend locally to ensure everything works as expected.
git add .
git commit -m "Add your message here"
git push origin feature/your-feature-name
- Go to the main repository on GitHub.
- Click "Pull Requests" > "New Pull Request".
- Select your branch and submit your PR with a clear description of your changes.