Go to file
Samuel Campos 1ae85bab61 Add dockerfile and docker-compose (testing purposes) 2020-12-30 12:24:01 +01:00
doc Add some images and improve site design 2020-12-02 18:03:39 +01:00
onebet Add some images and improve site design 2020-12-02 18:03:39 +01:00
.gitignore Add dockerfile and docker-compose (testing purposes) 2020-12-30 12:24:01 +01:00
Dockerfile Add dockerfile and docker-compose (testing purposes) 2020-12-30 12:24:01 +01:00
docker-compose.yml Add dockerfile and docker-compose (testing purposes) 2020-12-30 12:24:01 +01:00
readme.md Initial Commit 2020-10-05 11:11:54 +02:00

readme.md

1- INTRODUCTION

This project is the source code of the website 1bet.fr. It is done with the MVC Framework Django and relies on a PostgreSQL database.

The goal of this website is to aggregate news, scores, rankings and other data about sports, and to propose an interface of free sportive bets between friends.

The front is done with Bootstrap Framework, JQuery and the compiled language SCSS.

2- DEPLOYMENT

To deploy the project, first create a virtualenv :

python3.7 -m venv venv
source venv/bin/activate
pip install -r doc/requirements.txt

To create database schema, use manage.py :

cd onebet/
python manage.py migrate

To show current migrations :

python manage.py showmigrations

To reset migrations :

python manage.py migrate mainapp zero

To make migration files :

python manage.py makemigrations

To compile SCSS files :

python manage.py compilescss

To run server on port 8000 :

python manage.py runserver