Skip to content

This is a seed project that create a new monorepo with a core set of libraries and a nodejs service. Libraries include

Notifications You must be signed in to change notification settings

hyprnz/seed_nx_service

Repository files navigation

hyprnz

Getting Started

  1. Install Docker (and Windows Subsystem for Linux if on Windows)
  2. Install latest Node.js LTS
  3. If using VSCode, install the Devcontainers extension
  4. Once cloned, open the command pallete in VSCode and select 'Open Folder in Container'
  5. If not using VSCode, you can open and login to the dev container via the package.json scripts

Run Locally

  1. Clone the repository:

    git clone [email protected]:hyprnz/seed_nx_service.git
  2. Set environment variables:

    • For each app, use the .env.development.template files as a guide. Copy the template and rename it to .env.development.
  3. Start the development container:

    npm run docker:dev:up
  4. Log into the development container:

    npm run docker:dev:connect
  5. Install dependencies

    npm install
  6. When finished, you can tear down your docker container by doing the following

    exit # exit current container
    npm run docker:dev:down
    

Run tasks (from within container)

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 »

Security

This repository uses the following patterns for tackling security vulnerabilities

  1. npm audit runs as part of the build and will fail if any medium or higher vulnerabilities are found
  2. Github's dependabot will create pull requests for major dependency upgrades weekly
  3. Github's dependabot will create security alerts for significant vulnerabilities here - https://github.com//hyprnz/seed_nx_service/security/dependabot

Install Nx Console

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.

Install Nx Console »

Useful links

Learn more:

And join the Nx community:

About

This is a seed project that create a new monorepo with a core set of libraries and a nodejs service. Libraries include

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages