Rails Template
Ruby on rails template project with test and code analysis gems.
Getting Started
These instructions will get you a copy of the project up and running on your local machine.
-
Clone rails template project
git clone git@github.com:eagerworks/rails-template.git
-
Change app name
sed -i '' 's/template/your_new_app_name/g' ".ruby-version"
rails g rename:into your_new_app_name
cd ..; cd your_new_app_name
bundle install
- Add ENV variables in /.env
- DB_USERNAME
- DB_PASSWORD
- Run migrations
- Start server
Instructions
Run static code analizis tools
rake code_analysis
Versions
- Use
master
branch for a clean version of RoR with Rspec configuration, code analysis rake task and essential gems - Use
api_template
branch for implementing APIs. It comes with jwt authentication and CORS configuration. - Use
auth_template
branch for implementing a RoR project with user authentication using devise. - Use
dashboard_template
branch for implementing a RoR project with user authentication and a dashboard UI.