Development together: https://code-with-me.global.jetbrains.com/o-q28D-ks00zU69_k4DZ_g#p=PY&fp=8C90678DB01833AD817C894FD28BC96BFD3A60F7A8A6B7C194F890356749E4E3
You can run this locally, setting up the database the first time is the hardest part:
-
First, if you haven't already, install MongoDB: https://docs.mongodb.com/manual/administration/install-community/
-
Start the server / MongoDB shell by running
mongod
on the command lineNOTE: MongoDB actually doesn't create the database/document until an entry is inputted. So you don't have to do anything in the shell, although you could run
show dbs
later to verify the database was created. -
Create a .env file with the local
MONGODB_URI
in it along with the PORT you want to run the flights on8080
, e.g.:touch app/.env echo "MONGODB_URI=localhost:27017" > .env echo "PORT=8080" >> .env echo "LOCAL=True" >> .env
MONGODB_URI=localhost:27017 PORT=8080 LOCAL=True
-
Install the python requirements (best to do in a virtual environment):
pip install -r requirements.txt
-
Run main.py (
python app/main.py
on the command line) -
Open up 0.0.0.0:8000 in your web browser