Skip to content
Snippets Groups Projects
Commit 709bf63b authored by David Trattnig's avatar David Trattnig
Browse files

Updated commands.

parent 8369ab55
No related branches found
No related tags found
No related merge requests found
...@@ -12,14 +12,25 @@ Python 3.7+ ...@@ -12,14 +12,25 @@ Python 3.7+
## Getting started ## Getting started
To run the server, please execute the following from the root directory: Install the required dependencies:
``` ```
pip install -r requirements.txt pip install -r requirements.txt
python -m src
``` ```
this runs the API in an local development server. You can access the interactive documentation here: To run the server, please execute the following from the root directory:
```
./run.sh api
```
To run the API in an local development server execute:
```
./run.sh api-dev
```
You can access the interactive documentation here:
``` ```
http://localhost:8008/api/v1/ui/ http://localhost:8008/api/v1/ui/
...@@ -46,9 +57,12 @@ tox ...@@ -46,9 +57,12 @@ tox
To run the server on a Docker container, please execute the following from the root directory: To run the server on a Docker container, please execute the following from the root directory:
```bash ```bash
# building the image # Building the image
docker build -t src . ./run.sh docker:build
# Push the current image to dockerhub.com
./run.sh docker:push
# starting up a container # Starting up a container
docker run -p 8008:8008 src ./run.sh docker:api
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment