https://github.com/tasmidur/adonis6-rest-api
A REST API boilerplate for AdonisJS 6
https://github.com/tasmidur/adonis6-rest-api
Last synced: 3 months ago
JSON representation
A REST API boilerplate for AdonisJS 6
- Host: GitHub
- URL: https://github.com/tasmidur/adonis6-rest-api
- Owner: tasmidur
- Created: 2024-07-09T10:07:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T10:22:33.000Z (11 months ago)
- Last Synced: 2025-01-26T11:29:24.349Z (4 months ago)
- Language: TypeScript
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project Name: AdonisJS 6 Rest API
## Description:
This project is an example of implementing key features in AdonisJS 6 for REST API with Access Tokens as its auth guard.## Features:
- **User Authentication (Access Token)**: adding features for login, logout, manage profile using token, and refresh token
- **User Authorization (Bouncer)**: adding user abilities and post policies
- **Database (Lucid)**: implementing migration, seeder, and relationship model
- **Validation (VineJS)**: adding custom rules for exists and unique
- **Middleware**: implementing auth and bouncer middleware
- **Exception Handling**: adding handling errors for route not found, unauthorized access, unauthorized action (Bouncer), validation error (VineJS), custom database error (Lucid)
- **CRUD Examples**: users, user roles, user statuses and posts
- **Others**: add global helper, add global constants, and add uploaded file route## Requirements:
- **Node.js** >= 20.6
- 