To download & Run
- Download the source code, the database and the images from release. (Cloning the project is not advised, as historical git snapshots contain the entire image database and is huge.) (No kidding, ~2.5G.)
- Put
database.db
at project root. Extract theimg
folder to<project>/app/static/
.
The final structure looks like
<project>
├─run.py
├─database.db
├─app
│ ├─static
│ │ ├─img
│ │ │ └─*.{jpg|png}
│ │ └─...
│ └─...
└─...
- Install the dependencies. Eveyr dependency is explicitly imported at the top of
app/run.py
. You can install them manually.
As aconda
alternate, you can runconda env create -f environment.yml
in the project root directory to create an environment named metamap
with required dependencies. cd
to the project root and runpython run.py
. The webapp will be hosted on 5000 by default.