Boring Bits Rails Api

screenshot of Boring Bits Rails Api

Bare-bones template for Devise JWT-auth API-only Rails applications.

Overview

Boring Bits: Rails API Edition is a Rails 6 template designed specifically for building API-only applications that utilize JWT authentication. It provides a simple and reliable starting point for developing your next API project, without any unnecessary glamour or complexity. This template is compatible with Boring Bits: Nextjs Edition, allowing for seamless integration between frontend and backend components.

Features

  • Devise auth with JSON Web Tokens (JWT): Boring Bits: Rails API Edition includes Devise authentication functionality with JWT tokens, ensuring secure user authentication and authorization.
  • Login, signup, and protected route examples: The template provides examples of login, signup, and protected routes, allowing developers to easily understand and implement these essential features.
  • JSON:API response rendering: Boring Bits: Rails API Edition supports JSON:API response rendering, enabling consistent and efficient data exchange between clients and the server.
  • Namespaced /api/ routes: The template organizes API routes within a /api/ namespace, promoting a clear and structured API design.
  • TDD-ready with passing Rspec tests: Boring Bits: Rails API Edition is fully equipped with Rspec tests, ensuring the codebase is test-driven and of high quality.

Summary

Boring Bits: Rails API Edition is a no-frills Rails 6 template tailored for API-only applications with JWT authentication. It simplifies the initial setup process by providing essential features such as Devise authentication, login/signup examples, protected routes, JSON:API response rendering, and TDD-ready Rspec tests. This template serves as a reliable starting point for developers looking to build secure and efficient APIs without unnecessary complexity.