cd path/to/where/you/want/the/new/app
export NEW_APP_NAME=<name of app>
git clone [email protected]:substancelab/rails-boilerplate.git $NEW_APP_NAME
cd $NEW_APP_NAME
rm -rf .git .circleci
- Replace all occurrences of "Boilerplate" with YourAppName":
find . -type f -print0 | xargs -0 sed -i '' 's/Boilerplate/YourAppName/g'
- Replace all occurrences of "boilerplate" with "your_app_name":
find . -type f -print0 | xargs -0 sed -i '' 's/boilerplate/your_app_name/g'
- If you don't need users in the project, remove Devise:
script/boilerplate/remove_devise
mv README_APP.md README.md
rm -rf script/boilerplate
... and you're off to the races.
Typical next steps:
git init
git remote add origin GIT_REMOTE
git add .
git commit -m "Initial import from rails-boilerplate"
git push --set-upstream origin main
cp config/database.yml.example config/database.yml
# edit as necessaryscript/setup