Skip to content

Nando2003/adonis-api-psql-redis-openapi-template

Repository files navigation

How to run in development

  1. Install dependencies

    $ npm install
  2. Copy .env.example to .env and fill in the required environment variables.

    $ cp .env.example .env
    $ node ace generate:key
  3. Run the containers using docker-compose

    $ docker-compose up --build --force-recreate
  4. Run migrations and seed the database

    $ docker compose exec app node ace migration:run
  5. Run the tests

    $ docker compose exec app npm run test
  6. Create tests

    $ node ace make:test posts/create --suite=functional

How to run in production

  1. Set the environment to production in the .env file.

    NODE_ENV=production
  2. Start the container

    $ docker compose -f docker-compose.prod.yml up --build

About

it's a simple template for adonisjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published