{"id":18248792,"url":"https://github.com/saif-gitreps/flask-airline","last_synced_at":"2026-05-18T15:34:34.459Z","repository":{"id":224752070,"uuid":"758955627","full_name":"saif-gitreps/flask-airline","owner":"saif-gitreps","description":"A backend application for managing a ticket system using Flask.py with User activities like booking and checking flights. Admin activities like managing flights on the platform. Databases used is MongoDB with Mongoengine as model framework","archived":false,"fork":false,"pushed_at":"2024-03-01T11:04:16.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T02:01:55.226Z","etag":null,"topics":["flask","mongoengine","session-auth"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saif-gitreps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-17T15:13:07.000Z","updated_at":"2024-10-08T06:46:04.000Z","dependencies_parsed_at":"2024-11-05T09:41:11.345Z","dependency_job_id":"0aab7b59-b5dd-4b6b-945c-8207538e62f9","html_url":"https://github.com/saif-gitreps/flask-airline","commit_stats":null,"previous_names":["saif-gitreps/flask-airline"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saif-gitreps/flask-airline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saif-gitreps%2Fflask-airline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saif-gitreps%2Fflask-airline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saif-gitreps%2Fflask-airline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saif-gitreps%2Fflask-airline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saif-gitreps","download_url":"https://codeload.github.com/saif-gitreps/flask-airline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saif-gitreps%2Fflask-airline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33182961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","mongoengine","session-auth"],"created_at":"2024-11-05T09:38:19.078Z","updated_at":"2026-05-18T15:34:34.431Z","avatar_url":"https://github.com/saif-gitreps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Airline System Backend Server \n\nThis backend server is built using Flask, MongoDB, and mongoengine, following the MVC (Model-View-Controller) pattern.\n\n### Installation\n\n1. Clone the repository from GitHub:\n\n```bash\ngit clone \u003crepository_url\u003e\n```\n\n2. Install dependencies using pip:\n\n```bash\npip install -r requirements.txt\n```\n\n### Configuration\n\n1. Create a `.env` file in the root directory with the following environment variables:\n\n```plaintext\nFLASK_APP=app.py\nFLASK_ENV=development\nSECRET_KEY=\u003cyour_secret_key\u003e\nMONGODB_URI=\u003cyour_mongodb_uri\u003e\n```\n\n### Running the Server\n\nTo run the server, execute the following command:\n\n```bash\nflask run\n```\n\nBy default, the server will run on `http://localhost:5000`.\n\n### Endpoints\n\n#### Authentication and User operation (Admin and Customer)\n\n- `/api/v1/login`:\n  - POST: to login an existing customer.\n- `/api/v1/signup`:\n  - POST: create a new account for a customer.\n- `/api/v1/logout`:\n  - POST: removes session and logs out all types of user.\n- `/api/v1/login/admin`:\n  - POST: to login an existing admin.\n- `/api/v1/login`:\n  - POST: create a new account for an admin.\n\n\n#### Flight Routes Operation\n\n- `/api/v1/flights/search`: \n  - GET: Search for flights by date, to or from.\n- `/api/v1/flights/`: \n  - GET: Get all the flights status(Admin operation).\n- `/api/v1/flights/`: : \n  - POST: Add a flight (Admin operation).\n- `/api/v1/flights/\u003cflightId\u003e`: \n  - GET: Get the status of a particular flight (Admin operation).\n- `/api/v1/flights/\u003cflightId\u003e`: \n  - DELETE: Delete a flight (Admin operation).\n\n#### Booking Operations\n\n- `/api/v1/book`:\n  - GET: Get all the bookings made by the customer.\n- `/api/v1/book/\u003cflightId\u003e`:\n  - POST: Book a flight.\n\n### Models\n\nThe application uses the following models:\n\n1. **User Model**: Represents users of the system.\n2. **Flight Model**: Represents flight information.\n3. **Booking Model**: Represents a booking made by a customer.\n\n### Folder Structure\n\n- `app.py`: Main Flask application file.\n- `controllers/`: Contains controller logic.\n- `models/`: Contains data models.\n- `routes/`: Contains all the routes for the endpoints\n\n### Dependencies\n\n- **Flask**: Micro web framework for Python.\n- **mongoengine**: Object-Document Mapper (ODM) for working with MongoDB in Python.\n- **PyMongo**: Python driver for MongoDB.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaif-gitreps%2Fflask-airline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaif-gitreps%2Fflask-airline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaif-gitreps%2Fflask-airline/lists"}