GMAP data submission
This repository host the code for the data-submission website. It provides an interface form-based to check and submit a set of data packages and the necessary metadata to compose a GMAP data package.
Is is built with Python Flask, and provides a form based on a Meta JSON file. The backend being Python eases the integration between frontend and the backend tools we already have built.
Install
This project uses pipenv for portability. After cloning this repo, install and run the environment as follows:
$ pipenv install
$ pipenv shell
and proceed to run the software as explained in the next sections (e.g, flask run
).
Important notes
- we now use bootstrap-flask for managing boostrap (this changes the templates also)
- to handle changes in the structure of the DB we now use migrate. If the models were changed we need to:
$ flask db init [first time user]
$ flask db migrate
$ flask db upgrade
Run in development mode
$ flask run
Dirty planmap dataset importer
The importer scrapes data.planmap to import dataset
Example:
$ flask import-planmap
to delete all planmap packages:
$ flask remove-planmap
- A new user "planmap-heritage" is automatically creater the first time
- A dummy password is set for the planmap-heritage user
TODO
- Make a frontpage (index) with a minimal form (eg, "{ name: <> }")