Skip to content

GrbavaCigla/razmenakarata

Repository files navigation

RazmenaKarata

Platform to exchange concert/event tickets.

Table of contents

  1. Installation
    1. Docker
    2. Manual
      1. Frontend
      2. Backend
        1. Pipenv
        2. Manual
  2. Usage
    1. Backend
    2. Frontend
  3. License

Installation

Docker

Coming soon.

Manual

Before installing project dependencies, make sure you have redis installed.

Frontend

Install npm dependencies:

cd frontend
npm install

Backend

There are two ways to install dependencies for backend

Pipenv
cd backend
poetry install
Manual
cd backend
pip install -r requirements.txt

Usage (Dev)

Again, docker configuration is not done yet...

To run with postgresql instead of sqlite, set DJANGO_DB to postgres.
List of environment variables:

Variable Default Note
DJANGO_SECRET_KEY get_random_secret_key()
DJANGO_DEBUG True
DJANGO_CORS_ORIGINS [] Hosts are separated by comma
DJANGO_ALLOWED_HOSTS [] Hosts are separated by comma
DJANGO_ACTIVATION_URL 'api/v1/auth/activate/' or None Used for register activation
DJANGO_ACTIVATION_REDIRECT ''
DJANGO_INCLUDE_ACTIVATION_VIEW True Also dictates default value for url
DJANGO_DB sqlite postgresql or sqlite
POSTGRES_HOST 'localhost'
POSTGRES_NAME 'postgres'
POSTGRES_USER 'postgres'
POSTGRES_PASSWORD 'postgres'
POSTGRES_PORT 5432
REDIS_HOST 127.0.0.1:6379
DJANGO_EMAIL_HOST ''
DJANGO_EMAIL_PORT 587
DJANGO_EMAIL_USER ''
DJANGO_EMAIL_PASSWORD ''
DJANGO_EMAIL_FROM DJANGO_EMAIL_USER

Before starting backend, start redis with redis-server command.

Backend

cd backend
python manage.py runserver

Background worker:

python manage.py runcelery
python manage.py runcelerybeat

Frontend

cd frontend
npm run dev

License

Project is licensed under GPLv3 license.

About

Platform to exchange concert/event tickets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published