Reference API server of SMART Genomics
- Change the application settings in
config.py
(currently the server supports SQLite3 and PostgreSQL, MySQL is however not supported because SQLAlchemy currently fails to generate correct query on complex scenario. Helps on adding support fo MySQL will be welcomed). - Optional: load your version of FHIR spec with the script
load_spec.py
, which will updatefhir_spec.py
. - Setup database and load sample data with
# note that this will also clear the database
$ python fhir_genomics.py reload
- Run the server locally with
$ python fhir_genomics.py
- The WSGI objct is located in server.py, which you can use like this
$ gunicorn server:app