-
Install
gitand brew -
brew tap caskroom/cask -
brew cask install virtualbox -
brew install docker docker-machine docker-compose -
Fork
https://github.com/coderdojochi/coderdojochi -
git clone http://github.com/USERNAME/coderdojochi -
cd coderdojochi -
git remote add upstream https://github.com/CoderDojoChi/coderdojochi -
docker-machine create --driver virtualbox coderdojochi(takes 1 minute) -
docker-machine start coderdojochi -
eval "$(docker-machine env coderdojochi)" -
docker-compose up(for the first time, depending on your PC, it'll take 5-10 minutes)
-
docker-machine start coderdojochi -
eval "$(docker-machine env coderdojochi)" -
docker-compose up -
To get the URL for your local instance:
docker-machine ip coderdojochi
To grab the latest code from the upstream (main) repo, do the following:
git fetch upstream && git checkout develop && git merge upstream/develop- In terminal, traverse into project folder.
cd /PATH/TO/coderdojochi/- If starting a new task (new feature, new issue, etc.), make sure you are on the
developbranch.
git checkout develop- Update your local repository with the upstream
developbranch to make sure you are up to date.
git fetch upstream
git merge upstream/develop develop
git push -u origin develop- Create a new branch based off of the now up-to-date
developbranch to work off of.
git checkout -b feature/a-good-name develop- HACK. commit. HACK. commit. HACK. commit.
- When done, push to your repo (remote), and create a pull request
git push origin feature/a-good-namedocker kill $(docker ps -q); docker-compose rm -f; docker-compose build && docker-compose updocker-compose run --rm app python manage.py <command>docker-compose run --rm app python manage.py makemigrationsdocker-compose run --rm app python manage.py migrate coderdojochiOnce the app is running (you'll see app_1 | Installed X object(s) from X fixture(s)), load up the browser and go to 192.168.99.100.
To log into the admin, click the menu item 'My Dojo'.
username: admin@admin.com password: admin
username: guardian@guardian.com password: guardian