AdonisJS Boilerplate supports LucidORM for working with databases. By default, TypeORM uses PostgreSQL as the main database.
--
-
Clone repository
git clone --depth 1 https://github.com/Tagada216/adonisjs-boilerplate.git my-app
-
Go to folder, and copy
.env.example
as.env
.cd my-app/ cp .env.example .env
-
Modify and add the corresponding environment variables for your application context
-
Run additional container:
docker compose up -d postgres
- Install dependency
npm install
- Run app configuration
Adonis work with ace command you create and make migration and other
node ace migration:run
- Run app in dev mode
npm run dev
- Your server was open on http://localhost:3333