- Install Docker (and Windows Subsystem for Linux if on Windows)
- Install latest Node.js LTS
- If using VSCode, install the Devcontainers extension
- Once cloned, open the command pallete in VSCode and select 'Open Folder in Container'
- If not using VSCode, you can open and login to the dev container via the package.json scripts
-
Clone the repository:
git clone [email protected]:hyprnz/seed_nx_service.git
-
Set environment variables:
- For each app, use the
.env.development.template
files as a guide. Copy the template and rename it to.env.development
.
- For each app, use the
-
Start the development container:
npm run docker:dev:up
-
Log into the development container:
npm run docker:dev:connect
-
Install dependencies
npm install
-
When finished, you can tear down your docker container by doing the following
exit # exit current container npm run docker:dev:down
To run the dev server for your app, use:
npx nx serve hyprnz
To create a production bundle:
npx nx build hyprnz
To run a security check:
npx nx static:security hyprnz
To run linting:
npx nx lint hyprnz
To see all available targets to run for a project, run:
npx nx show project hyprnz
These targets are either inferred automatically or defined in the project.json
or package.json
files.
More about running tasks in the docs »
This repository uses the following patterns for tackling security vulnerabilities
- npm audit runs as part of the build and will fail if any medium or higher vulnerabilities are found
- Github's dependabot will create pull requests for major dependency upgrades weekly
- Github's dependabot will create security alerts for significant vulnerabilities here - https://github.com//hyprnz/seed_nx_service/security/dependabot
Nx Console is an editor extension that enriches your developer experience. It lets you run tasks, generate code, and improves code autocompletion in your IDE. It is available for VSCode and IntelliJ.
Learn more:
- Learn more about this workspace setup
- Learn about Nx on CI
- Releasing Packages with Nx release
- What are Nx plugins?
And join the Nx community: