GithubHelp home page GithubHelp logo

xuanthinhjb / nx-docker-compose-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drillfreak100/nx-docker-compose-sample

0.0 0.0 0.0 1.05 MB

A sample to manage multiple Apps in Nx using docker-compose

JavaScript 5.91% TypeScript 91.57% HTML 2.15% Dockerfile 0.21% SCSS 0.16%

nx-docker-compose-sample's Introduction

Nx Docker-Compose Example

Purpose

This repo is intended to demonstrate how we can leverage docker-compose with Nx Monorepo to spin up a single dev environment that consists of multiple Apps in one go.

Expectation

From a dev perspective, you should now be able to:

  1. Scaffold entire dev environment with just one "docker-compose up" command
  2. Get the same Hot Module Reload (HMR) development experience like what we normally do with those watch mode command, in this case - "nx serve app-xx"

Samples Included

  1. app-1 (React App)
  2. app-2 (React App)
  3. app-3 (Angular App)
  4. api-1 (Express App)

How To Run

  1. Run "npm install" to install the dependencies like any other Node-based projects
  2. Run "docker-compose up" to spin up all the services defined in the docker-compose.yml
  3. You can now access the individual apps in dev mode a. localhost:4201 (app-1) b. localhost:4202 (app-2) c. localhost:4203 (app-3)

Notes

This repo is developed on a Windows machine. If there is anything that does not work on other OS like macOS, Linux, etc., please feel free to file an issue or even better, drop PR for it.

nx-docker-compose-sample's People

Contributors

drillfreak100 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.