|
1 | | -# Planventure API 🚁 |
| 1 | +# Planventure API Server 🚀 |
| 2 | + |
| 3 | +A Flask backend API that powers the Planventure travel planning application. This guide will help you quickly get the server running so you can focus on building the client application. |
| 4 | + |
| 5 | +## Quick Start |
| 6 | + |
| 7 | +1. Fork and clone the repository: |
| 8 | +```sh |
| 9 | +git clone https://github.com/yourusername/planventure.git |
| 10 | +cd planventure/planventure-api |
| 11 | +``` |
| 12 | + |
| 13 | +2. Set up Python environment and install dependencies: |
| 14 | +```sh |
| 15 | +python -m venv venv |
| 16 | +source venv/bin/activate # On Windows: venv\Scripts\activate |
| 17 | +pip install -r requirements.txt |
| 18 | +``` |
| 19 | + |
| 20 | +3. Start the development server: |
| 21 | +```sh |
| 22 | +flask run |
| 23 | +``` |
| 24 | + |
| 25 | +The API server will be running at `http://localhost:5000` |
| 26 | + |
| 27 | +That's it! You can now proceed to set up and work on the client application. |
| 28 | + |
| 29 | +## API Health Check |
| 30 | + |
| 31 | +Verify the server is running: |
| 32 | +```sh |
| 33 | +curl http://localhost:5000/health |
| 34 | +``` |
| 35 | + |
| 36 | +Expected response: `{"status": "healthy"}` |
| 37 | + |
| 38 | +# Planventure Client ✈️ |
2 | 39 |
|
3 | 40 | [](https://codespaces.new/github-samples/planventure) |
4 | 41 |
|
5 | | -A Flask-based REST API backend for the Planventure application. |
| 42 | +A React-based travel planning application that helps you organize your trips, manage itineraries, and keep track of travel details. |
| 43 | + |
| 44 | +## Features |
| 45 | + |
| 46 | +- 🗺️ Trip Planning & Management |
| 47 | +- 📅 Interactive Itinerary Builder |
| 48 | +- 🏨 Accommodation Tracking |
| 49 | +- 🚗 Transportation Management |
| 50 | +- 📱 Responsive Design |
| 51 | +- 🔐 Secure Authentication |
6 | 52 |
|
7 | 53 | ## Prerequisites |
8 | | -Before you begin, ensure you have the following: |
9 | 54 |
|
| 55 | +Before you begin, ensure you have the following: |
| 56 | +- Node.js (v16 or higher) |
| 57 | +- npm or yarn |
10 | 58 | - A GitHub account |
11 | 59 | - Access to GitHub Copilot - [sign up for FREE](https://gh.io/gfb-copilot)! |
12 | | -- A Code Editor |
13 | | -- API Client (like [Bruno](https://github.com/usebruno/bruno)) |
14 | 60 | - Git - [Download & Install Git](https://git-scm.com/downloads) |
15 | 61 |
|
16 | 62 | ## 🚀 Getting Started |
17 | 63 |
|
18 | | -## Build along in a Codespace |
| 64 | +### Quick Start with Codespaces |
19 | 65 |
|
20 | | -1. Click the "Open in GitHub Codespaces" button above to start developing in a GitHub Codespace. |
| 66 | +1. Click the "Open in GitHub Codespaces" button above |
| 67 | +2. Wait for the environment to build |
| 68 | +3. Run `npm install` and `npm run dev` |
21 | 69 |
|
22 | 70 | ### Local Development Setup |
23 | 71 |
|
24 | | -If you prefer to develop locally, follow the steps below: |
25 | | - |
26 | | -1. Clone the repository and navigate to the [planventue-api](/planventure-api/) directory: |
| 72 | +1. Open a new terminal window and cd into the `planventure-client` directory: |
27 | 73 | ```sh |
28 | | -cd planventure-api |
| 74 | +cd planventure/planventure-client |
29 | 75 | ``` |
30 | 76 |
|
31 | | -2. Create a virtual environment and activate it: |
| 77 | +2. Install dependencies: |
32 | 78 | ```sh |
33 | | -python -m venv venv |
34 | | -source venv/bin/activate # On Windows: venv\Scripts\activate |
| 79 | +npm install |
35 | 80 | ``` |
36 | 81 |
|
37 | | -3. Install the required dependencies: |
| 82 | +3. Create a `.env` file: |
38 | 83 | ```sh |
39 | | -pip install -r requirements.txt |
| 84 | +VITE_API_URL=http://localhost:5000 |
40 | 85 | ``` |
41 | 86 |
|
42 | | -4. Create an `.env` file based on [.sample.env](/planventure-api/.sample.env): |
| 87 | +4. Start the development server: |
43 | 88 | ```sh |
44 | | -cp .sample.env .env |
| 89 | +npm run dev |
45 | 90 | ``` |
46 | 91 |
|
47 | | -5. Start the Flask development server: |
48 | | -```sh |
49 | | -flask run |
50 | | -``` |
| 92 | +Visit `http://localhost:5173` to see the application. |
| 93 | + |
| 94 | +## 🏗️ Tech Stack |
| 95 | + |
| 96 | +- React |
| 97 | +- Material-UI |
| 98 | +- React Router |
| 99 | +- Day.js |
| 100 | +- Vite |
| 101 | + |
| 102 | +## 📱 Features Overview |
| 103 | + |
| 104 | +### Trip Management |
| 105 | +- Create and manage trips |
| 106 | +- Set destinations and dates |
| 107 | +- Track accommodations and transportation |
51 | 108 |
|
52 | | -## Docker Setup |
| 109 | +### Itinerary Planning |
| 110 | +- Day-by-day planning |
| 111 | +- Activity scheduling |
| 112 | +- Time management |
53 | 113 |
|
54 | | -If bulding locally, follow the Docker setup steps in the [DockerSetup](DockerSetup) file. |
| 114 | +## 🤝 Contributing |
55 | 115 |
|
56 | | -## 📚 API Endpoints |
57 | | -- GET / - Welcome message |
58 | | -- GET /health - Health check endpoint |
| 116 | +1. Fork the repository |
| 117 | +2. Create your feature branch (`git checkout -b feature/AmazingFeature`) |
| 118 | +3. Commit your changes (`git commit -m 'Add some AmazingFeature'`) |
| 119 | +4. Push to the branch (`git push origin feature/AmazingFeature`) |
| 120 | +5. Open a Pull Request |
59 | 121 |
|
60 | 122 | ## 📝 License |
61 | 123 |
|
62 | | -This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
| 124 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
0 commit comments