Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eagerworks/rails-template
https://github.com/eagerworks/rails-template
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eagerworks/rails-template
- Owner: eagerworks
- Created: 2019-10-18T17:54:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-24T17:14:45.000Z (almost 3 years ago)
- Last Synced: 2023-03-06T08:11:57.671Z (almost 2 years ago)
- Language: Ruby
- Size: 488 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
1. Clone rails template project
`git clone [email protected]:eagerworks/rails-template.git`2. 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`3. Add ENV variables in /.env
- DB_USERNAME
- DB_PASSWORD4. Run migrations
5. Start server### Instructions
Run static code analizis tools
`rake code_analysis`### Versions
1. Use `master` branch for a clean version of RoR with Rspec configuration, code analysis rake task and essential gems
2. Use `api_template` branch for implementing APIs. It comes with jwt authentication and CORS configuration.
3. Use `auth_template` branch for implementing a RoR project with user authentication using devise.
4. Use `dashboard_template` branch for implementing a RoR project with user authentication and a dashboard UI.