- Docker
- Fork this repo.
- Run the following commands changing
USERNAME
to your GitHub username.
# Clone forked repo
git clone [email protected]:USERNAME/c2.git
# Go into project repository
cd c2
# Add upstream remote
git remote add upstream [email protected]:CoderDojoChi/c2.git
# Disable push for upstream
git remote set-url --push upstream DISABLE
# Build and run docker
docker-compose build
docker-compose up
# Running with log output
docker-compose up
# Running daemon mode (in the background)
docker-compose up -d
# Attaching a log output to already-running process
docker-compose logs web
docker-compose logs db
Load the website via localhost:8000 and going to /admin/. The debug admin login info is:
Username: [email protected]
Password: coderdojochi
For a full list of management options, start the app, then create a shell into the instance. the following commands:
# In one window
docker-compose up
# In another window
docker-compose run web bash
invoke --list
# Create migrations
docker-compose run web python manage.py makemigrations
# Run Migrations
docker-compose run web python manage.py migrate
# Run all tests
docker-compose run web invoke django-test
# Run test for <app>
docker-compose run web invoke django-test <app>
# Example for 'account' app
docker-compose run web invoke django-test account