Skip to content

Nikunne/flights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flights-project

This project will display flights from the Avinor API

USING DOCKER

First time:

docker compose up --build

Later times:

docker compose down docker compose up

Project should be visible on

localhost:5173

WITHOUT DOCKER

Frontend

Runs with

cd frontend

npm i

npm run dev

Frontend should be visible on

localhost:5173

Backend

Create venv: (only first time)

cd backend
python3 -m venv .venv
pip install -r requirements.txt
exit

Start the backend:

cd backend
source .venv/bin/activate
pip install -r requirements.txt
fastapi dev main.py

Backend should be visible on

localhost:8000

Problems?

Should both be in venv:

which pip

which python

You might have to check that the interpreter of your IDE is the same as the one in your venv. In webstorm this can be done in settings. This project is coded in Jetbrains WebStorm

img.png

img.png

Choose an existing one, change it to the /backend/.venv/bin/python You might need to install a python extension for your IDE.

About

Bring back avinor-flights

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors