GithubHelp home page GithubHelp logo

More documentation needed about nx HOT 3 CLOSED

nrwl avatar nrwl commented on June 17, 2024 2
More documentation needed

from nx.

Comments (3)

jschwarty avatar jschwarty commented on June 17, 2024

Hey @RogerGL great inquiries and suggestions. We will have some documentation and guides to explain more coming soon. But here are some answers for you now.

One of the powerful things about the libs structure is the ease of encapsulating stuff within NgModule chunks, keeping focus on small pieces. Instead of creating those within a single app, it is trivial to organize those in libs in the Nx Workspace and just consume them in the app. This sets you up to easily reuse those when you add more apps (among other advantages).

The ng serve of the first app in the list is a behavior of the Angular CLI. The port number or url to serve for each app is something that can be handled with the Angular CLI functionality. You can set up npm scripts to make serving individual apps easier:

package.json

{
  . . .
  "scripts" {
    . . .
    "serve:app1": "ng serve -a=app1 --port=4201",
    "serve:app2": "ng serve -a=app2 --port=4202",
    . . .
  }
  . . .
}

that can be run via:

npm run serve:app1

This is a little more of an Angular CLI usage thing than a Nx thing, but there is probably some potential there for Nx to maybe make this setup easier. Guess it will depend on how opinionated Nx will be out of the box vs more flexibility.

from nx.

 avatar commented on June 17, 2024

Thanks a lot for your kind reply. I'm really happy that there is an effort to provide some guidelines for large scale JS-Enterprise projects.

from nx.

github-actions avatar github-actions commented on June 17, 2024

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

from nx.

Related Issues (20)

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.