mkdir ~/bin
sudo zsh -c "if ! grep '^/Users/`whoami`/bin$' /etc/paths > /dev/null; then echo '/Users/`whoami`/bin' >> /etc/paths; fi"
curl https://gist.githubusercontent.com/twhitacre/2bb065a8fc757f712542/raw/newapp --retry 5 > ~/bin/newapp
chmod +x ~/bin/newapp
specify 2 arguments:
- github
user/repo
to use as template - new project name
newapp twhitacre/app_template my_new_app
- Navigate to your
projects
folder (or wherever you store projects) - Run
$ newapp template <project-name>
where "project-name" is the name of your project- Note that the
template
is a specific repo in our organization
- Note that the
- Change directory into your project
$ cd <project-name>
- Initialize the repo
$ git init
- Build something