adonisjs / web-starter-kit

Starter kit for creating traditional server rendered applications using AdonisJS
18 stars 7 forks source link
starter-kit

AdonisJS Web Starter Kit

This repo contains an AdonisJS application tailored for building a server-side rendered application using the Edge template engine.

What's included

On top of the framework core and dev-tooling, the following features are enabled by the web starter kit.

Usage

You can create a new app using the web boilerplate by executing the following command. The command will perform the following steps.

npm init adonisjs@latest -- -K=web

Configuring Lucid database dialect

By default, the npm init adonisjs@latest command configures Lucid to use sqlite. However, you can define a custom database dialect as follows.

npm init adonisjs@latest -- -K=web --db=postgres

Available options for the --db flag.

Configuring Auth package guard

By default, the npm init adonisjs@latest command configures the Auth package to use session guard. However, you can define a custom auth guard as follows.

npm init adonisjs@latest -- -K=web --auth-guard=access_tokens

Available options for the --auth-guard flag.