Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deriegle/rails_starter_project
Rails API Starter for personal & freelance projects
https://github.com/deriegle/rails_starter_project
Last synced: 25 days ago
JSON representation
Rails API Starter for personal & freelance projects
- Host: GitHub
- URL: https://github.com/deriegle/rails_starter_project
- Owner: deriegle
- Created: 2019-05-20T00:55:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T05:55:20.000Z (about 2 months ago)
- Last Synced: 2024-09-16T07:04:08.530Z (about 2 months ago)
- Language: Ruby
- Homepage:
- Size: 61.5 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rails API Starter
I created this Rails API starter repo to help myself create projects easier. I found that each time I would start working on a freelance or personal project, I would spend a lot of time getting these things up, because most of the time I am setting up rails now for APIs to mobile applications or a React application.
The hardest part for me was always getting the testing set up correctly and authentication/JWTs.
This starter kit makes it super simple to start mocking out your features without needing to worry about all the basics like getting tests setup correctly and authentication.
You will be able to start adding your models and controllers and accessing your data in no time.Let me know if you have any questions. I would accept pull requests if they don't add too many opinionated items to this repo. I want this to be very simple so that is easy to customize for users.
Feel free to Fork and use as you want!Included in this starter
- Basic API signup and login authentication (with JWT for authentication)
- `pg` gem for Postgres database
- RSpec for testing
- FactoryBot, Faker, and Shoulda matchers for easier testing
- DatabaseCleaner for cleaning database between tests
- `.env` file with `set_env` helper for testing
- Timecop for mocking time during tests