This document contains general guidelines for setting up a development environment sufficient for getting started with contributing to this project:
See the contribution guidelines to start contributing.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
For more details, go to Homebrew.
2. Install Git Duet
$ brew tap git-duet/tap
$ brew install git-duet
3. Install Yarn
$ brew install yarn --without-node
4. Install Nvm
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash
$ nvm install
If you are on a Mac and having trouble, make sure to run touch ~/.bash_profile
before running the above command.
5. Install Direnv
$ brew install direnv
$ echo 'eval "$(direnv hook bash)"' >> ~/.bashrc
Note: In order for the above to work on MacOS, your .bash_profile needs to be setup to read your .bashrc by containing the following:
# Either this
[[ -r ~/.bashrc ]] && . ~/.bashrc
# Or this
if [ -f $HOME/.bashrc ]; then
source $HOME/.bashrc
fi
You can check your .bash_profile with:
$ open ~/.bash_profile
# If it doesn't contain either of the above
$ echo '[[ -r ~/.bashrc ]] && . ~/.bashrc' >> ~/.bash_profile
After doing this, anything in your .bash_profile other than the configuration above can now be moved to your .bashrc
$ cd ~/workspace/calltocode.org
$ nvm install
$ direnv allow
7. Install Docker
8. Make sure your IDE supports editorconfig
9. (Optional) Download Robo 3T
Robo 3T (formerly known as Robomongo) is a MongoDB management tool with a GUI, making it easy to view and manage the database.
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
$ test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$PATH"
$ test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
$ test -r ~/.profile && echo 'export PATH="$(brew --prefix)/bin:$PATH"' >>~/.profile
$ echo 'export PATH="$(brew --prefix)/bin:$PATH"' >>~/.profile
$ test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$PATH"
$ test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
$ test -r ~/.bash_profile && echo 'export PATH="$(brew --prefix)/bin:$PATH"' >>~/.bash_profile
$ echo 'export PATH="$(brew --prefix)/bin:$PATH"' >>~/.bash_profile
For more details, go to Linuxbrew.
3. Follow Mac OS Setup starting from section 2
It is recommended that you use a mac or linux, but if you only have a pc, follow these steps to setup ubuntu bash.
- Update your Windows 10 to the latest build.
- Run powershell as administrator and execute the following.
$ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux`
- Enable Developer Mode in Windows settings.
- Run command prompt as administrator and execute the following.
$ bash
- After setup, open "Bash on Ubuntu on Windows". Add this to your dock.
- Click the Ubuntu icon on the top left of the window, and click Defaults.
- Setup Font -> Size 14, Font Lucida Console.
- Enable QuickEdit Mode.
- Restart bash.