-
Install dependencies
$ npm install
-
Copy .env.example to .env and fill in the required environment variables.
$ cp .env.example .env $ node ace generate:key
-
Run the containers using docker-compose
$ docker-compose up --build --force-recreate
-
Run migrations and seed the database
$ docker compose exec app node ace migration:run -
Run the tests
$ docker compose exec app npm run test
-
Create tests
$ node ace make:test posts/create --suite=functional
-
Set the environment to production in the .env file.
NODE_ENV=production
-
Start the container
$ docker compose -f docker-compose.prod.yml up --build