Giter VIP home page Giter VIP logo

nx-example's Introduction

TestAssessment

This workspace has been generated by Nx, a Smart, fast and extensible build system.

Understand this workspace

Run nx graph to see a diagram of the dependencies of the projects.

Remote caching

Run npx nx connect-to-nx-cloud to enable remote caching and make CI faster.

Further help

Visit the Nx Documentation to learn more.


Run with docker

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

nx-example's People

Contributors

phongnttt avatar

Watchers

Phong Nt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.