Skip to content

Commit

Permalink
test data for db in development
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Dec 31, 2014
1 parent 2fe1a78 commit c4a8b31
Show file tree
Hide file tree
Showing 2 changed files with 474 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ mysqldump --xml voseq_database > dump.xml
Then use our script to migrate all your VoSeq data into a PostGreSQL database.

```shell
make migrations
python migrate_db.py dump.xml
```

Expand Down Expand Up @@ -85,4 +86,35 @@ make serve
```

Open this URL in your web browser and you are ready to start using VoSeq:
`http://127.0.0.1:8000/`
`http://127.0.0.1:8000/`

# Test database for development
You can use test data to populate your PostgreSQL database, useful for
development.

Create a PostgreSQL database:

```shell
sudo su postgres
psql
postgres=# create database voseq;
```

Create tables for the database:

```shell
make migrations
```

Import test data for your database:

```shell
python migrate_db.py test_db_dump.xml
```

Start the server:
```shell
make serve
```

And point your web browser to: `http://127.0.0.1:8000/`
Loading

0 comments on commit c4a8b31

Please sign in to comment.