Skip to content
The fullstack application boilerplate for Adonisjs
JavaScript Other
Branch: master
Clone or download
Pull request Compare This branch is 139 commits ahead of adonisjs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
database
nbproject
public
resources/views
start
webpack-app
website-cors
.editorconfig
.env.example
.env.https.example
.gitignore
README.md
ace
index.html
init.js
package.json
postcss.config.js
push-git.sh
server-https.js
server.js
webpack.config.js

README.md

Adonis fullstack application


Setup

  1. Download source code from https://github.com/pulipulichen/20191004-adonisjs-chat/archive/master.zip
  2. Unzip
  3. Open folder in terminal
  4. For first run:
    • Execute command: npm run init .
    • Waiting for packages installing finish.
  1. For following run in development:
  1. For following run in production:
  • Execute command: npm run 1.production .
  • Open URL of admin in browser: http://127.0.0.1:3333/admin .
  • Insert <script src="http://127.0.0.1:3333/spa/client-loader.js" async></script> in the html you want to plugin.

Default URL list:


Document


AdonisJS Commands

Database Migration

https://adonisjs.com/docs/4.1/migrations#_creating_migrations

adonis make:migration users
adonis migration:run
adonis migration:refresh

Model

https://adonisjs.com/docs/4.1/lucid

adonis make:model User

Route Controller

https://adonisjs.com/docs/4.1/controllers

adonis make:controller User --type http

AdonisJS Readme

This is the fullstack boilerplate for AdonisJs, it comes pre-configured with.

  1. Bodyparser
  2. Session
  3. Authentication
  4. Web security middleware
  5. CORS
  6. Edge template engine
  7. Lucid ORM
  8. Migrations and seeds

Setup

Use the adonis command to install the blueprint

adonis new yardstick

or manually clone the repo and then run npm install.

Migrations

Run the following command to run startup migrations.

adonis migration:run
You can’t perform that action at this time.