- Notifications
You must be signed in to change notification settings - Fork1
PennChopMicrobiomeProgram/marc_web
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A web interface for querying mARC
This is a Flask app with bootstrap, jquery, and datatables (via CDN). To start with local development:
git clone https://github.com/PennChopMicrobiomeProgram/marc_web.gitcd marc_web/python -m venv env/source env/bin/activatepip install -r requirements.txtpip install -r dev-requirements.txtexport MARC_DB_URL=sqlite:////path/to/marc_web/db.sqlite && export MARC_DB_LAST_SYNC=/path/to/last_sync && flask --app app/app run --debugYou'll need to create/path/to/marc_web/db.sqlite usingmarc_db and (optionally)/path/to/last_sync with a date/time stamp.
To test the containerized version locally,
docker build -t myrepo/marc_web:dev -f Dockerfile .docker run --rm -p 8080:80 -v /path/to/marc_web/:/data -e MARC_DB_URL='sqlite:////data/db.sqlite' myrepo/marc_web:devmyrepo can be anything for local development. If you want to push anything to DockerHub it will have to be a repo you have proper permissions for. Use the full path to themarc_web repo where specified. Once this is running, you can navigate tohttp://127.0.0.1:8080 in your browser and interact with it. The database it is using lives at/path/to/marc_web/db.sqlite.
There are a lot of options for deployment of containerized apps. If you have access to Kubernetes, it is the de facto standard for deploying containerized apps.
About
A web interface for querying mARC
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.