Skip to content

SUDKURIER-Data-Days/flight-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flight-analysis

Development together: https://code-with-me.global.jetbrains.com/o-q28D-ks00zU69_k4DZ_g#p=PY&fp=8C90678DB01833AD817C894FD28BC96BFD3A60F7A8A6B7C194F890356749E4E3

How do I run this locally?

You can run this locally, setting up the database the first time is the hardest part:

  1. First, if you haven't already, install MongoDB: https://docs.mongodb.com/manual/administration/install-community/

  2. Start the server / MongoDB shell by running mongod on the command line

    NOTE: 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.

  3. Create a .env file with the local MONGODB_URI in it along with the PORT you want to run the flights on 8080, e.g.:

    touch app/.env
    echo "MONGODB_URI=localhost:27017" > .env
    echo "PORT=8080" >> .env
    echo "LOCAL=True" >> .env
    

    Windows users, create the file app/.env:

    MONGODB_URI=localhost:27017
    PORT=8080
    LOCAL=True
    
  4. Install the python requirements (best to do in a virtual environment):

    pip install -r requirements.txt
    
  5. Run main.py (python app/main.py on the command line)

  6. Open up 0.0.0.0:8000 in your web browser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published