Skip to content

A reusable Rails 7 API template featuring Devise for user management and JWT for secure token-based authentication.

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

rustam-tolipov/rails-api-auth-template-v1

Repository files navigation

Rails 7 API with Devise and JWT Authentication

This is a reusable API implementation for authenticating users using Devise and JSON Web Tokens (JWT).

Getting Started

  1. Clone this repository
  2. Modify the .env.example file to match your project's environment and rename it to .env.
  3. Run rake secret to generate a secret key and add it to the .env file.
  4. Run rails db:reset to create and reset the database.
  5. Run rspec spec to run the tests and make sure everything is working correctly.
  6. Start the Rails server with rails server and begin building your API.

License

This API is licensed under the MIT License.

⚠️ Legacy Notice

This 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

About

A reusable Rails 7 API template featuring Devise for user management and JWT for secure token-based authentication.

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published