cd path/to/where/you/want/the/new/appexport NEW_APP_NAME=<name of app>git clone [email protected]:substancelab/rails-boilerplate.git $NEW_APP_NAMEcd $NEW_APP_NAMErm -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.mdrm -rf script/boilerplate
... and you're off to the races.
Typical next steps:
git initgit remote add origin GIT_REMOTEgit 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