Python 3.6.4
- Go to ecasino directory (
cd ecasino
) - Run
npm i
, use default semantic settings - Go to
semantic
directory (cd semantic
) - Build assets:
- if you have globally installed gulp:
gulp build
- else run
../node_modules/gulp/bin/gulp.js build
- if you have globally installed gulp:
- Create virtualenv (
virutalenv venv
/python -m virutalenv venv
) - Activate it (
source venv/bin/activate
) - Install requirements (
pip install -r requirements.txt
) - Create and configure role / db in postgres (db:
ecasino
,ecasino:ecasino
) - Go to app directory (
cd ecasino
) - Run migrations (
python manage.py migrate
) - Load default bonuses:
python manage.py loaddata initial-bonus.json
- Create superuser account to access
/admin
interface:python manage.py createsuperuser
- Run server (
python manage.py runserver
) - Access server on
http://localhost:8000
and admin on 'http://localhost:8000/admin'
- Build app container:
docker-compose build
- Run containers:
docker-compose up
- If required, in separate terminal:
- load fixtures:
docker exec -it mfecasinoconcept_web_1 python manage.py loaddata initial-bonus.json
- create superuser:
docker exec -it mfecasinoconcept_web_1 python manage.py createsuperuser
- load fixtures:
- Access server on
http://localhost:8000
and admin on 'http://localhost:8000/admin'
- Every bonus may have different wagering amount.
- Money spent on playing is accumulated, and may be then used toward cashing-in the awarded bonus money to real-money wallet.
- Awarded bonuses work as bonus money wallets that disappear once the bonus is cashed-in.