This is the fullstack boilerplate for AdonisJs, it comes pre-configured with.
- Bodyparser
- Session
- Authentication
- Web security middleware
- CORS
- Edge template engine
- Lucid ORM
- Migrations and seeds
Fist, clone project:
git clone https://github.com/carlosfgti/example-adonis-node.git
cd example-adonis-node/
npm install
File .env define access:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=root
DB_DATABASE=name_database
adonis migration:run
Start project:
adonis serve --dev