python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .sample-env .env
In the .env files you need to setup connection details to Postgres: CREATE DATABASE genaiappbuilder; CREATE ROLE genaiappbuilder WITH LOGIN PASSWORD 'strong_password'; ALTER DATABASE genaiappbuilder OWNER TO genaiappbuilder;
Redis: redis-cli ACL SETUSER user >password on allchannels allkeys +get +set +del allcommands ACL SETUSER genaiappbuilder >Jg5X9gnGtzC5AMy on allchannels allkeys +get +set +del allcommands You also need to set a secret django key:
` import string import random
''.join(random.SystemRandom().choice(string.ascii_letters + string.digits + string.punctuation) for _ in range(50)) `
npm install
npx tailwindcss -i ./static/src/input.css -o ./static/src/output.css --watch
cp **/flowbite.min.js static/src
python manage.py migrate
python manage.py runserver