Repository navigation
Local Setup: Sandbox Repo
bree edited this page Nov 9, 2020
·
3 revisions
- Clone the git-sandbox repo to your local 💻
- run
git clone https://github.com/itcig/git-sandbox.git
- run
- Once the repo has been cloned open the git-sandbox directory and install the npm packages
- run
yarn
- run
- Next install the php dependencies
- run
composer install
- run
- Create a Personal access token for release-it
- Click Generate new token in the upper right
- Input your Github password if prompted and click Confirm password
- In the Note field I recommend a format like : ie. macbook pro: release-it 2020.08.17
- Check the box next to repo (this is all the access release it should need)
- Scroll to the bottom of the page and click Generate token
- Once it's saved you should see the token at the top of the page, copy the token (if you leave the page you will not be able to recover the token and a new one will need to be created)
- Then add the following to your ~/.bash_profile
export GITHUB_TOKEN="[github personal access token]"- Run
vim ~/.bash_profile - Press
ito enter Vim's insert mode - Add
export GITHUB_TOKEN="[github personal access token]" - Press the escape key and enter
:wqto save and exit Vim
- Run
if you want to set this up as a docker environment:
- Download Docker here, follow the account and installation directions.
- Make sure Docker is running (Mac: small whale icon in toolbar menu), then in the root of the git-sandbox directory, run
docker-compose up -d. - Voila, a new container will be created with a generated name (such as
git-sandbox_web_1). - If you'd like to stop the container, run
docker-compose down.