Create a tmp
directory for the SQLite database file
mkdir tmp
Install the dependencies
npm run install
Run the tests
npm run test
Add these values to the .env.test
file
DB_CONNECTION=pg
PG_HOST=localhost
PG_PORT=5432
PG_USER=lucid
PG_PASSWORD=lucid
PG_DB_NAME=lucid
Launch the database using
docker-compose run postgresql
Install the dependencies
npm run install
Run the tests
npm run test
Copy the .env.example
file to .env
Install the dependencies
npm run install
Run the project using
npm run dev
Visit http://localhost:3333
Copy the .env.example
file to .env
Change the DB_CONNECTION
from sqlite
to pg
Build the project using
docker-compose build
Run the project using
docker-compose up -d
Visit http://localhost