Adonis Jwt Api Starter screenshot

Adonis Jwt Api Starter

Author Avatar Theme by Amitkhare
Updated: 20 Apr 2023
39 Stars

Boilerplate for creating a JWT API server in AdonisJs with vuejs as backend.

Overview:

The AdonisJS JWT is a boilerplate for creating an API server in AdonisJs. It comes pre-configured with various features such as Bodyparser, Authentication, Authorization, and more. This boilerplate provides a set of API endpoints for user authentication, user profile management, and more.

Features:

  • Bodyparser: Easily parse incoming request bodies in JSON, form, or other formats.
  • Authentication: Provides API endpoints for user authentication, including authorizing users, signing up, and verifying email addresses.
  • Authorization: Allows for assigning roles to users, removing users, and managing user bans.
  • User Profile: Provides API endpoints for managing user profiles, including updating first name and last name.

Installation:

  1. Install AdonisJS JWT using the adonis command:
adonis new <app-name> --blueprint=adonisjs-jwt
  1. Alternatively, manually clone the repository and then run npm install:
git clone <repository-url>
cd <app-name>
npm install
  1. Setup database configurations in the ROOT/.env file.
  2. Setup mail server configurations in the ROOT/.env file.
    • Optional: Set APP_SUPERADMIN_EMAIL in ROOT/.env to bypass email verification for this email address.
  3. Customize any other variables in the ROOT/.env file according to your needs.
  4. Run the following command to run startup migrations:
adonis migration:run

Summary:

The AdonisJS JWT is a powerful boilerplate for creating an API server in AdonisJs. It comes with several key features such as authentication, authorization, and user profile management. The installation process is straightforward, and the documentation provides clear instructions on how to set it up. Overall, this boilerplate can be a useful tool for developers looking to quickly create an API server with AdonisJs.