-
Install
git
and 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
develop
branch.
git checkout develop
- Update your local repository with the upstream
develop
branch 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
develop
branch 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-name
docker kill $(docker ps -q); docker-compose rm -f; docker-compose build && docker-compose up
docker-compose run --rm app python manage.py <command>
docker-compose run --rm app python manage.py makemigrations
docker-compose run --rm app python manage.py migrate coderdojochi
Once 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: [email protected] password: admin
username: [email protected] password: guardian