Adonis AdminLTE
This repo is an implementation of a starter pack for Adonis v.4.x with some tweaks. It is just an example of how you can implement front-end stuff and authentication.
What's inside?
- Sqlite as a DB layer
- Auth controller (login, logout)
- Auth emails (welcome email, reset password email)
- Auth validators
- Webpack v4.x default config
- LESS + ES6+
- Folder structure for views
Details
webpack
configured to compile three stylesheets and scripts forapplication
,manage
andauth
section of the app- a special
webpack_asset
global added toView
, to require those js/css files in views - a special
host
global added toView
, to correctly insert links in emails, it take value from.env
file as aAPP_URL
variable - a set of methods in
Auth
controller, includinglogin
,reset
,logout
welcome
andforgot
emails for account confirmation and password resetAPP_FROM_TITLE
andAPP_FROM_EMAIL
in.env
file describe and form amessage.from()
string, that is used to send default transactional emails
Setup
Manually clone the repo and then run npm install
.
npm install
Make a copy of .env.example rename it to .env
Migrations
Run the following command to run startup migrations.
adonis migration:run
and run
adonis seed
Run adonis key:generate to generate the secret key
adonis key:generate
How to run
Two terminal windows
npm run buildDev
build font-endnpm run start
for development