✨ This workspace has been generated by Nx, a Smart, fast and extensible build system. ✨
Run nx graph
to see a diagram of the dependencies of the projects.
Run npx nx connect-to-nx-cloud
to enable remote caching and make CI faster.
Visit the Nx Documentation to learn more.
Create .env
from .env.example
cp ./apps/cms/.env.example ./apps/cms/.env
cp ./apps/frontend-web/.env.example ./apps/frontend-web/.env
cp ./.db.env.example ./.db.env
Note In .db.env
POSTGRES_DB=test-assessment # same as DATABASE_NAME in ./apps/cms.env
POSTGRES_USER=test-assessment # same as DATABASE_USERNAME in ./apps/cms.env
POSTGRES_PASSWORD=test-assessment # same as DATABASE_PASSWORD in ./apps/cms.env
Run docker compose
docker compose up
Using the environments if you want to custom the ports: DB_PORT,ADMINER_PORT, REDIS_PORT, REDIS_INSIGHT_PORT, CMS_PORT, FE_WEB_PORT.eg:
DB_PORT=6543 CMS_PORT=1338 FE_WEB_PORT=1339 docker compose up
Adminer: http://localhost:{{ADMINER_PORT}}
Redis insight: http://localhost:{{REDIS_INSIGHT_PORT}}
CMS: http://localhost:{{CMS_PORT}}
Web: http://localhost:{{WEB_PORT}}
Default web ports
DB_PORT=5432
ADMINER_PORT=5433
REDIS_PORT=6379
REDIS_INSIGHT_PORT=6380
CMS_PORT=1337
FE_WEB_PORT=3000