mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
changed scripts location
This commit is contained in:
@@ -20,8 +20,8 @@ All open source projects begins with people like you. Open source is the belief
|
||||
|
||||
Work is organized in the [project board](https://github.com/orgs/LAION-AI/projects/3).
|
||||
|
||||
- To get started with development, if you want to work on the backend, have a look at `backend/scripts/backend-development/README.md`.
|
||||
- If you want to work on the frontend, have a look at `backend/scripts/frontend-development/README.md`.
|
||||
- To get started with development, if you want to work on the backend, have a look at `scripts/backend-development/README.md`.
|
||||
- If you want to work on the frontend, have a look at `scripts/frontend-development/README.md`.
|
||||
|
||||
There is also a minimal implementation of a frontend in the `text-frontend` folder.
|
||||
|
||||
|
||||
+1
-5
@@ -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.
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
|
||||
Run `docker compose up` to start a database. The default settings are already configured to connect to the database at `localhost:5432`.
|
||||
|
||||
Make sure you have all requirements installed. You can do this by running `pip install -r requirements.txt` inside the `backend` folder.
|
||||
Then, run the backend using the `run-local.sh` script. This will start the backend server at `http://localhost:8080`.
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
|
||||
|
||||
# switch to backend directory
|
||||
pushd "$parent_path/../../app"
|
||||
pushd "$parent_path/../../backend/app"
|
||||
|
||||
export ALLOW_ANY_API_KEY=True
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ services:
|
||||
file: ../backend-development/docker-compose.yaml
|
||||
service: adminer
|
||||
backend:
|
||||
build: ../../.
|
||||
build: ../../backend/.
|
||||
environment:
|
||||
- POSTGRES_HOST=db
|
||||
- ALLOW_ANY_API_KEY=True
|
||||
Reference in New Issue
Block a user