Table of Contents
This is a monorepo build with Nx, in apps/ you will find a Next.js client and a Nest.js server
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.
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>
.
Run nx serve <name>
for a dev server.
Run nx g @nrwl/react:component my-component --project=<name of your app>
to generate a new component.
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.
Run nx test <name>
to execute the unit tests via Jest.
Run nx affected:test
to execute the unit tests affected by a change.
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.
Run nx graph
to see a diagram of the dependencies of your projects.
Visit the Nx Documentation to learn more.
-
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).
Distributed under the MIT License. See LICENSE.txt
for more information.
Louis
Project Link: Nx-Next-Nest-Template