Skip to content

GrbavaCigla/razmenakarata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

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, docker branch currently WIP.

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
pipenv 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
SECRET_KEY random
POSTGRES_HOST localhost
POSTGRES_NAME postgres
POSTGRES_USER postgres
POSTGRES_PASSWORD postgres
POSTGRES_PORT 5432
DJANGO_DB sqlite
REDIS_HOST 127.0.0.1:6379
DJANGO_DEBUG True

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

Backend

cd backend
python manage.py runserver

Background worker:

python manage.py run_huey

Frontend

cd frontend
npm run dev

License

Project is licensed under GPLv3 license.