kubar Svelte Themes

Kubar

Events manager based on Django REST and Svelte

Kubar Events manager based on Django REST framework and Svelte

Tech stack

Web

Mobile

Backend

Instructions

Set environment variables

  • DATABASE_URL - For example: postgres://USER:PASSWORD@HOST:PORT/NAME
  • SECRET_KEY - Create one with:
    $ python
    >>> from django.core.management.utils import get_random_secret_key
    >>> get_random_secret_key()
    
  • DEBUG - Default value False for Development environment should be True
  • ALLOWED_HOSTS - add allowed hosts, default is empty list. Django documentation
  • SSL_REQUIRE - Default value True for Development environment should be False

.env file can be used, put it in settings folder backend/kubar/settings

Running locally

Backend Django server (port 8000):
$ python backend/manage.py runserver --settings=kubar.settings.development

Frontend Svelte server (port 8080):
$ cd frontend/web
$ npm run dev

Deploying to Heroku

  • Use the buildpack negativetwelve/heroku-buildpack-subdir:
    $ heroku buildpacks:set https://github.com/negativetwelve/heroku-buildpack-subdir
  • This uses the .buildpacks definition in the app root

Top categories

Loading Svelte Themes