Skip to content

Backend that serves salmon population data to the scip webpage

License

Notifications You must be signed in to change notification settings

pacificclimate/scip-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scip-backend

This application accesses a PostGIS database containing information on predefined areas a user might care about (watersheds, basins, and salmon conservation units) and metadata about salmon populations. Its role is to provide data to the SCIP frontend.

Installation for development

The SCIP backend uses Poetry to manage virtual environments and package installation. Once you have Poetry installed and this repository cloned, you can use Poetry to set up and manage the virtual environment:

$ git clone http://github.com/pacificclimate/scip-backend
$ cd scip-backend
$ poetry install

This is a Flask application; it is configured by setting environment variables for Flask to read:

$ export FLASK_APP=scip.wsgi:app #what app to run
$ export DB="postgresql://user:password@server:port/database" #where to get data
$ export FLASK_DEBUG=1 #print error messages

And now you should be able to run it:

$ poetry run flask run

About

Backend that serves salmon population data to the scip webpage

Resources

License

Stars

Watchers

Forks

Packages

No packages published