2 ms·
Step one is to install Xcode or the Xcode command line tools. These are necessary for brew to build from source. Once brew and clang are working it's mostly a
by bitwize 10y ago
Step one is to install Xcode or the Xcode command line tools. These are necessary for brew to build from source.
Once brew and clang are working it's mostly a matter of installing packages as on a normal Unix system. Definitely want to install command-line git.
Of course what this guide is missing is how to set up the runtime for whatever environment/framework you're using. For Rails you'll want rvm/rbenv; for Node, nvm. You also may wish to test everything in a Linux VM that mirrors prod, in which case configuring your Mac to transfer or share the code jn your src directory with the VM is necessary.
Getting the actual dependencies of your code up and running is generally the most crucial -- and most difficult -- part of prepping any new dev box.
- knicholes 10y agoUsing Docker, one could have various images made for whichever runtime environments you require. This way, no dependencies for running/compiling code need to be installed on a dev machine other than Docker and can be easily used from any machine with Docker, avoiding the hassle of setting up all of these dependencies.