Update README.md

This commit is contained in:
Alex
2023-09-28 16:07:50 +01:00
committed by GitHub
parent 86be6be2d2
commit c1c54f4848

View File

@@ -116,7 +116,7 @@ Make sure you have Python 3.10 or 3.11 installed.
export CELERY_BROKER_URL=redis://localhost:6379/0 export CELERY_BROKER_URL=redis://localhost:6379/0
export CELERY_RESULT_BACKEND=redis://localhost:6379/1 export CELERY_RESULT_BACKEND=redis://localhost:6379/1
export MONGO_URI=mongodb://localhost:27017/docsgpt export MONGO_URI=mongodb://localhost:27017/docsgpt
export FLASK_APP=app.py export FLASK_APP=application/app.py
export FLASK_DEBUG=true export FLASK_DEBUG=true
``` ```
2. Prepare .env file 2. Prepare .env file
@@ -128,11 +128,10 @@ python -m venv venv
``` ```
4. Change to `application/` subdir and install dependencies for the backend 4. Change to `application/` subdir and install dependencies for the backend
```commandline ```commandline
cd application/ pip install -r application/requirements.txt
pip install -r requirements.txt
``` ```
5. Run the app `flask run --host=0.0.0.0 --port=7091` 5. Run the app `flask run --host=0.0.0.0 --port=7091`
6. Start worker with `celery -A application.app.celery worker -l INFO` from the directory above 6. Start worker with `celery -A application.app.celery worker -l INFO`
### Start frontend ### Start frontend
Make sure you have Node version 16 or higher. Make sure you have Node version 16 or higher.