hoang-himself / CO3109-Backend

School project; but I actually use this to practice other stuff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deadline as a Service

CI

We are making a dispenser with micro:bit and a lot of shit this time

Getting started

  1. Prerequisites

  2. Open VSCode in this folder

  3. Create a file named .env at the root of this folder according to this format

    # from django.core.management.utils import get_random_secret_key
    # get_random_secret_key()
    SECRET_KEY='<fill your seed here>'
    JWT_KEY='<fill your seed here>'
    
    # Postgres
    # If you change any of these POSTGRES parameters, you have to update DATABASE_URL too
    POSTGRES_USER=what-is-love
    POSTGRES_PASSWORD=baby-dont-hurt-me
    POSTGRES_DB=no-more
    POSTGRES_HOST=postgres
    POSTGRES_PORT=5432
    
    # Django
    HOST=0.0.0.0
    PORT=3109
    # postgres://<DB user>:<DB user password>@<host>:<port>/<DB name>
    DATABASE_URL=postgres://what-is-love:baby-dont-hurt-me@postgres:5432/no-more
    
  4. Command Palette -> Remote-Containers: Reopen in Container

About

School project; but I actually use this to practice other stuff

License:MIT License


Languages

Language:Python 93.9%Language:Shell 4.7%Language:Dockerfile 1.2%Language:Procfile 0.1%