Skip to content

Louis3797/nx-next-nest-template

Repository files navigation


Nx-Next-Nest-Template



View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Roadmap
  4. License
  5. Contact

About The Project

This is a monorepo build with Nx, in apps/ you will find a Next.js client and a Nest.js server

Built With

Getting Started

Generate an new application

Run nx g @nrwl/react:app <name> or nx g @nrwl/next:app <name> to generate a new frontend application.

When using Nx, you can create multiple applications and libraries in the same workspace.

Generate a library

Run nx g @nrwl/react:lib <name> or nx g @nrwl/next:lib <name> or nx g @nrwl/nest:lib <name> or nx g @nrwl/workspace:lib <name> to generate a library.

Libraries are shareable across libraries and applications. They can be imported from @nx-next-nest/<name>.

Development server

Run nx serve <name> for a dev server.

Code scaffolding

Run nx g @nrwl/react:component my-component --project=<name of your app> to generate a new component.

Build

Run nx build <name> to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run nx test <name> to execute the unit tests via Jest.

Run nx affected:test to execute the unit tests affected by a change.

Running end-to-end tests

Run nx e2e <name> to execute the end-to-end tests via Cypress.

Run nx affected:e2e to execute the end-to-end tests affected by a change.

Understand your workspace

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

Further help

Visit the Nx Documentation to learn more.

Installation

  1. Clone the repo

    git clone https://github.com/Louis3797/nx-next-nest-template.git

    Intall all Dependencies

    cd nx-next-nest-template
    npm install

    Run dev

    nx serve

See the open issues for a full list of proposed features (and known issues).

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Louis

Project Link: Nx-Next-Nest-Template