Skip to content

Commit

Permalink
add specific prerequisites and instructions to drop all tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula Kammler committed Dec 6, 2023
1 parent 35f40e9 commit 47186bf
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ Expert System Decision API developed with django and django-ninja

## Prerequisites

- Python 3 according to [Django](https://djangoproject.com) requirements
- PostgreSQL
- Python 3 according to [Django](https://djangoproject.com) requirements (tested with version 3.8.10s) including pip and virtualenv
- [PostgreSQL](https://www.postgresql.org/) (tested with version 14.8)
- [virtualenv](https://virtualenv.pypa.io/en/latest/index.html)

## How to install and start the API

Expand Down Expand Up @@ -63,6 +64,20 @@ pipeline. To do this locally run the following commands from the project root:
Now you should see a folder named `htmlcov`, open the `index.html` in there in
your browser and explore the files that you would like to see the coverage for.

### Dropping all tables

Sometimes during development dropping all tables in your database is required
or useful. To do this use the commands below. Be careful not to drop something
you still need!

```SQL
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
```

Afterwards be sure to apply migrations (step 6 above) and optionally also load
data from seed (`python manage.py loaddata {/path/to/seed/file}`).

## Your first tree

The treexpert has three main components that play together to make a tree and
Expand Down

0 comments on commit 47186bf

Please sign in to comment.