rc-svelte-template-test Svelte Themes

Rc Svelte Template Test

Svelte FastAPI Amadeus Template

A simple demo showcasing a flight booking application using Svelte with FastAPI to interact with a leading GDS (Amadeus).

mkdir flight-booking-backend cd flight-booking-backend python -m venv venv venv/bin/activate
pip install fastapi uvicorn amadeus python-dotenv pip intall requirements.txt

Create your environment file (.env) and set required variables

Use the following to initiate a fastapi server with uvicorn backend: uvicorn main:app

The backend server will be running on default port 8000: http://127.0.0.1:8000

For more on deployment see here: https://fastapi.tiangolo.com/deployment/manually/#run-the-server-program

Initiate a new Svelte project: npx sv create svelte@latest flight-booking-app

Use npm run dev and get going. The Svelte application will be running on http://localhost:5173/

For actual deployment you need to contact Amadeus to provide you are an IATA agency. Alternatively they will settle things for you with some IATA partner of theirs.

The API is documented on gitub and Amadeus developer website. For end-to-end booking you will need to get in touch with the company.

Top categories

Loading Svelte Themes