Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version License


Logo

Airports App

Just a tool for finding info about airports by searching its IATA code.


Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. For lazyness, there's a database in the project.

Prerequisites

You'll need python (version 2.7 is the original of the project) and pip installed.

How to set up

Create a virtual environment
virtualenv [foldername]

If you're using windows you may have to use this instead

python -m virtualenv [foldername]
Activate the virtual environment
source [virtualenv foldername]/bin/activate

On windows:

[virtualenv foldername]/Scripts/activate
Install the requirements
pip install -r requirements.txt
Set the environment variables
  • FLASK_APP as the app name
  • FLASK_ENV as development

Running the app

If it's all setup run the command from the project path:

flask run

Setting a database (if needed)

Go with the regular flask db init, flask db migrate, flask db upgrade. The folder nth has a script to populate the app airports table from a csv.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages