changed scripts location

This commit is contained in:
Yannic Kilcher
2022-12-17 22:31:21 +01:00
parent f6c8eae88f
commit 0d9034e4bb
7 changed files with 6 additions and 9 deletions
+1 -5
View File
@@ -14,8 +14,4 @@ BACKEND_CORS_ORIGINS=["http://localhost", "http://localhost:4200", "http://local
## Running the REST Server locally for development
First, install the requirements in `requirements.txt`.
Then, run two terminals (note the working directory for each):
- Terminal 1, to go `backend/scripts` and run `docker-compose up`. This will start postgres.
- Terminal 2, to go `backend` and run `scripts/run-local.sh`. This will start the REST server.
Have a look into the main `README.md` file for more information on how to set up the backend for development.
@@ -1,5 +0,0 @@
# Backend Development Setup
Run `docker compose up` to start a database. The default settings are already configured to connect to the database at `localhost:5432`.
Then, run the backend using the `run-local.sh` script. This will start the backend server at `http://localhost:8080`.
@@ -1,17 +0,0 @@
version: "3.7"
services:
db:
image: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
adminer:
image: adminer
restart: always
ports:
- 8089:8080
@@ -1,11 +0,0 @@
#!/usr/bin/env bash
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
# switch to backend directory
pushd "$parent_path/../../app"
export ALLOW_ANY_API_KEY=True
uvicorn main:app --reload --port 8080 --host 0.0.0.0
popd
@@ -1,5 +0,0 @@
# Frontend Development Setup
Run `docker compose up --build` to start a database and the backend server.
Then, point your frontend at `http://localhost:8080` to start developing. During development, any API key will be accepted.
@@ -1,26 +0,0 @@
version: "3.7"
services:
db:
extends:
file: ../backend-development/docker-compose.yaml
service: db
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 2s
timeout: 2s
retries: 10
adminer:
extends:
file: ../backend-development/docker-compose.yaml
service: adminer
backend:
build: ../../.
environment:
- POSTGRES_HOST=db
- ALLOW_ANY_API_KEY=True
depends_on:
db:
condition: service_healthy
ports:
- "8080:8080"