An AdonisJS 6 Authentication Scaffold with TailwindCSS
node ace add @adocasts.com/jumpstart
Everything you meed to jumpstart your next AdonisJS 6 project
- 🪄 Automatically configures TailwindCSS
- 🔐 Full authentication flow, including remember me
- 🔏 Forgot password ready to go out-of-the-box, including email
- 🕵️ Simple profile settings page
- 👨💻 Simple account settings page with change email & delete account forms
- 🚨 Toast messages to notify your users
- 🏖️ Handy EdgeJS components and layouts to get you going
It is recommended to start from the Web Starter Kit as it comes out-of-the-box with most of the AdonisJS core packages we require.
- 🕸️ Web Starter Kit (recommended)
- 📏 Slim Starter Kit
We require the following AdonisJS core packages. If you're missing any, we'll walk you through adding any you're missing during the configuration step!
- Vite (
@adonisjs/vite
) - VineJS (
vine
) - EdgeJS (
edge
) - Session (
@adonisjs/session
) - Shield (
@adonisjs/shield
) - Auth (Session Guard) (
@adonisjs/auth
) - Lucid (
@adonisjs/lucid
) - Mail (
@adonisjs/mail
)
- AdonisJS 6 web/slim project (
npm init adonisjs@latest
) - If
@adonisjs/auth
is already configured, you must be using the session guard
Adocasts Jumpstart only needs to run once and adds/installs everything needed directly into your project so you have full control to change anything you wish.
node ace add @adocasts.com/jumpstart
All you need to do is install & configure Adocasts Jumpstart. It'll then:
- Walk you through adding any missing AdonisJS core packages
- Install the following dependencies directly into your project. Feel free to remove any you don't wish to use
- TailwindCSS (
tailwindcss --dev
) - Autoprefixer (
autoprefixer --dev
) - EdgeJS Iconify (
edge-iconify
) - Iconify Phosphor (
@iconify-json/ph
) - Iconify SVG Spinners (
@iconify-json/svg-spinners
)
- TailwindCSS (
- Fully configure TailwindCSS inside your project
- Adds an
APP_URL
environment variable (useful for email link generating) - Enables HTTP Method Spoofing (allows REST-based routes)
- Adds a globals preload file for EdgeJS globals & to configure EdgeJS Iconify
- Adds all stub files into your project. This will include:
- Controllers
- Models
- Services
- Validators
- Migrations
- Views -> Components
- Views -> Emails
- Views -> Pages
- Adds Jumpstart's routes to your
routes.ts
file - Adds auth methods to your user model
- Lastly, you can optionally uninstall
@adocasts.com/jumpstart
. Once everything is scaffolded, you no longer need it.
After that, be sure to update any new environment variables or configurations that may have been added from missing AdonisJS core packages, boot it up, and visit /jumpstart
.