This is the fullstack boilerplate for AdonisJs, it comes pre-configured with.
- Bodyparser
- Session
- Authentication
- Web security middleware
- CORS
- Edge template engine
- Lucid ORM
- Postgre Database
- Migrations and seeds
Run the following command to install dependencies.
$ yarn
Run the following command to configure postgre database
$ cp .env-elephant-pg .env
Run the following command to run startup migrations.
adonis migration:run
docker
# build
$ docker build -d <container-name> <directory-from-dockerfile>
# run
$ docker run -t 3333:3333 <container-name>
# Example: docker run -t 3333:3333 crud-adonis
docker-compose:
$ docker compose up