This is a travel management API developed in Python using Flask. It allows the creation and management of trips, participants, events/attractions, activities, and sending invitations via email. Participants can confirm their presence on trips through the API.
-
Trip Management:
- Create, find, and confirm trips.
-
Trip Participants:
- Add and list participants from a trip.
- Send email invitations to participants.
- Confirm participants' presence on a trip.
-
Trip Events/Attractions:
- Add, list, and remove events/attractions for the trip.
-
Trip Activities:
- Add, list, and remove activities for the trip.
- Python: Main programming language.
- Flask: Web framework used to build the API.
- SMTP: Protocol used for sending emails.
- Virtual Environment: Used to isolate project dependencies.
-
Clone the repository:
git clone https://github.com/your-username/repository-name.git cd repository-name
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies
- GET /trips/:tripId: Find a trip.
- POST /trips: Create a new trip.
- GET /trips/:tripId/participants: Find a participant of a trip.
- POST /trips/:tripId/invites: Invite a new participant to the trip.
- PATCH /participants/:participantId/confirm: Confirm a participant's presence on the trip.
- GET /trips/:tripId/links: List all links for events/attractions of a trip.
- POST /trips/:tripId/links: Create a new link for an event/attraction to the trip.
- GET /trips/:tripId/activities: List all activities of a trip.
- POST /trips/:tripId/activities: Add a new activity to the trip.
- Fork the project.
- Create a new branch with your feature:
git checkout -b my-feature
- Commit your changes:
git commit -m 'Add new feature'
- Push to the branch:
git push origin my-feature
- Submit a pull request.
Made with ❤️ by Guilherme Vaz 👋🏽 Get in touch!