# make sure you've installed docker: https://docs.docker.com/engine/install/
# and docker-compose: https://docs.docker.com/compose/install/
# you may also have to add your user to the docker group: https://docs.docker.com/engine/install/linux-postinstall/
git clone https://github.com/React-Guru-Org/poker-gamegit
cd oddslingers.poker
# Add to /etc/hosts -> 127.0.0.1 oddslingers.l
docker-compose run django ./manage.py migrate
docker-compose run django ./manage.py createsuperuser
docker-compose up
# Open http://oddslingers.l
From here, you could begin to do changes in the codebase and to run these commands for developing tasks:
# For installing yarn packages
docker-compose run --rm django oddslingers yarn_install
# For testing
docker-compose run --rm django oddslingers testpy
docker-compose run --rm django oddslingers testjs
# For linting
docker-compose run --rm django oddslingers lintpy
docker-compose run --rm django oddslingers lintjs
# For rebuilding docker images and update the python packages
docker-compose build
Some useful docker-compose commands:
# Start the stack
docker-compose start
# Stop the stack
docker-compose stop
# List the services
docker-compose ps
# Init the stack
docker-compose up
# Destroy the stack (This delete the docker containers)
docker-compose down
# Build the docker images
- Setup: Dev or Setup: Prod
- Layers of the Stack
- Quickstart & Common Tasks
- Project Directory Structure
- Configuration
- Running Tests & Linters
- Dependency Documentation
- Game Engine Documentation
- Style Guide
- Debugging & Profiling Tools
- Git Flow & Making Pull Requests
We use the Github Wiki for documentation, head over there for more info...