This how you can run your own version of lynbrook app backend with your own test user
- Install Docker Docker-compose
- comment or remove google auth and storage
SOCIAL_AUTH_GOOGLE_KEY = os.environ["GOOGLE_API_KEY"]
SOCIAL_AUTH_GOOGLE_SECRET = os.environ["GOOGLE_API_SECRET"]
SOCIAL_AUTH_SCHOOLOGY_KEY = os.environ["SCHOOLOGY_API_KEY"]
SOCIAL_AUTH_SCHOOLOGY_SECRET = os.environ["SCHOOLOGY_API_SECRET"]
...
DEFAULT_FILE_STORAGE = "storages.backends.gcloud.GoogleCloudStorage"
GS_BUCKET_NAME = "lynbrook-app"
GS_PROJECT_ID = "lynbrook-high"
GS_CREDENTIALS = Credentials.from_service_account_file(os.environ["GCS_CREDS"])
GS_DEFAULT_ACL = "authenticatedRead"
GS_FILE_OVERWRITE = False
...
poetry export -f requirements.txt --output requirements.txt
You can learn more about the django here
docker-compose run web /code/manage.py makemigrations
docker-compose run web /code/manage.py migrate
docker-compose run web /code/manage.py createsuperuser --email=your@email.here
docker-compose up
You can also setup debugging using docker on vscode