-
follow instructions in
backend/proxy/certs/README.md
and create self-signed certificate -
edit
backend/src/data/test_data.py
and add more entitiesor
add
google_creds.json
into the backend root to load test data from GoogleSheet -
edit
backend/.env.docker
to have all required envs -
run
docker compose up
-
visit
https://sbukma.ml:3000
andhttps://sbukma.ml:3000/api/ui
- to enable google auth
Go to the https://console.cloud.google.com/apis/credentials and create new OAuth client ID
(and project if not have one).
After creation paste Client ID
and Client secret
to the .env.docker
.
GOOGLE_CLIENT_ID=<client_id>
GOOGLE_CLIENT_SECRET=<client_secret>
Add https://sbukma.ml:3000
to Authorized JavaScript origins
and https://sbukma.ml:3000/login/callback
to Authorized redirect URIs
.
Also go to the https://console.cloud.google.com/apis/credentials/consent and add Test user with your email.
If you use local data modify backend/src/data/test_data.py
auth entry with your gmail to have access. Otherwise edit sheet database or add entry via database.
- to connect image uploading
Go to the https://api.imgbb.com, register and get key, paste it to the .env.docker
IMAGE_API_KEY=<token>
The full initialization of infrastructure described here
Note!
- Don't forget to properly create all .env files
- Don't forget to change DNS configs for new instances