This is a reusable API implementation for authenticating users using Devise and JSON Web Tokens (JWT).
- Clone this repository
- Modify the
.env.example
file to match your project's environment and rename it to.env
. - Run
rake secret
to generate a secret key and add it to the.env
file. - Run
rails db:reset
to create and reset the database. - Run
rspec spec
to run the tests and make sure everything is working correctly. - Start the Rails server with
rails server
and begin building your API.
This API is licensed under the MIT License.
⚠️ Legacy NoticeThis is the original version (v1) of my Rails API + Devise + JWT template, built with Rails 7.0 and older Ruby versions.
A new and improved version is currently being developed with Ruby 3.3.1 and Rails 7.2.2.1. 👉 Check out the latest version here