Expanded developer start a little bit

This commit is contained in:
Serj 2023-04-24 18:39:53 +01:00
parent 36f0aacb19
commit 7aafac5b5e

View File

@ -68,13 +68,19 @@ Spin up only 2 containers from docker-compose.yaml (by deleting all services exc
Make sure you have python 3.10 or 3.11 installed Make sure you have python 3.10 or 3.11 installed
1. Navigate to `/application` folder 1. Navigate to `/application` folder
2. Install dependencies
2. Install redis server `sudo apt install redis-server`
3. Start redis server `sudo service redis-server start`
4. Export required variables
`export CELERY_BROKER_URL=redis://localhost:6379/0`
`export CELERY_RESULT_BACKEND=redis://localhost:6379/1`
5. Install dependencies
`pip install -r requirements.txt` `pip install -r requirements.txt`
3. Prepare .env file 6. Prepare .env file
Copy .env_sample and create .env with your openai api token Copy .env_sample and create .env with your openai api token
4. Run the app 7. Run the app
`python app.py` `python app.py`
5. Start worker with `celery -A app.celery worker -l INFO` 8. Start worker with `celery -A app.celery worker -l INFO`
To start frontend To start frontend
1. Navigate to `/frontend` folder 1. Navigate to `/frontend` folder