Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A web interface for querying mARC

NotificationsYou must be signed in to change notification settings

PennChopMicrobiomeProgram/marc_web

Repository files navigation

A web interface for querying mARC

TestsDockerHub

Dev

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 --debug

You'll need to create/path/to/marc_web/db.sqlite usingmarc_db and (optionally)/path/to/last_sync with a date/time stamp.

Docker

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:dev

myrepo 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.

Deployment

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

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp