JSON API app build using Ruby on Rails
App generated using this custom Rails Template
Version 1 Features:
- User account creation and update
- Token authentication using
devise
andjwt
- Request authorization using
pundit
- Database search using
pg_search
- Model and request specs using
rspec-rails
andfactory_bot_rails
With frontend frameworks and libraries increasing the complexities of processes that happen on the client side, we can now build simpler backend applications. REST API's connect such client-side applications to the database.
I built this backend API mainly for the application I built using React and Redux (as well as a server-rendered version using Next JS).
- Ruby on Rails
- PostgreSQL
- Devise
- JWT
- Pundit
- Jbuilder
- PG Search (for search capability)
- RSpec
- FactoryBot
Follow these steps:
- clone this repo
cd bookstore-rails-api
bundle
rails s
Goto localhost:3000
Use either httpie
on the terminal or Postman to do requests
See this React Redux app as showcase for how the API is utilized.
PRs accepted.
MIT © 2019 Ryan Vergara