Skip to content

This is a small project for Spudeiske Bratstvo NaUKMA student organization

License

Notifications You must be signed in to change notification settings

BearDimonR/sbtreeweb

Repository files navigation

SBTree repository

Hosted version (Demo):

Full project

Only this part

Development sector

How to run project in the docker?

  1. follow instructions in backend/proxy/certs/README.md and create self-signed certificate

  2. edit backend/src/data/test_data.py and add more entities

    or

    add google_creds.json into the backend root to load test data from GoogleSheet

  3. edit backend/.env.docker to have all required envs

  4. run docker compose up

  5. visit https://sbukma.ml:3000 and https://sbukma.ml:3000/api/ui

Other

  1. 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.

  1. 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>

Deployment sector

The full initialization of infrastructure described here

Note!

  1. Don't forget to properly create all .env files
  2. Don't forget to change DNS configs for new instances

About

This is a small project for Spudeiske Bratstvo NaUKMA student organization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •