Skip to content

Commit

Permalink
Note building a test db and postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
wasade committed Jul 24, 2020
1 parent 1ceb644 commit d3e7517
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
A private microservice to support The Microsetta Initiative

## Installation
The private microservice depends on Postgres 9.5. For OSX users, we recommend installing [Postgres.app](https://postgresapp.com/). For Linux users, please consult documentation for the Linux distribution in use.

Create a new `conda` environment containing `flask` and other necessary packages:

`conda create -n microsetta-private-api flask psycopg2 natsort pycryptodome`
Expand All @@ -30,7 +32,11 @@ Then install the microsetta-private-api in editable mode:

## Test Usage

In the activated conda environment, start the microservice using flask's built-in server by running, e.g.,
In the activated conda environment, initialize a test database:

`python microsetta_private_api/LEGACY/build_db.py`

Next, start the microservice using flask's built-in server by running, e.g.,

`python ./microsetta_private_api/server.py`

Expand Down

0 comments on commit d3e7517

Please sign in to comment.