Skip to content

maytheu/nest-grpc

Repository files navigation

Forex

This workspace has been generated by Nx, Smart Monorepos · Fast CI.

Integrate with editors

Enhance your Nx experience by installing Nx Console for your favorite editor. Nx Console provides an interactive UI to view your projects, run tasks, generate code, and more! Available for VSCode, IntelliJ and comes with a LSP for Vim users.

Start the application

Run npm install to install dependency copy .sample.env to env

Run npx nx serve api to start the development api server. Run npx nx serve auth to start the development auth server. Run npx nx serve wallet to start the development wallet server. Run npx nx serve transaction to start the development transaction server. Run npx nx serve rate to start the development rate server.

Run multiple server npx nx run-many -t serve api auth wallet transaction rate

You can access it on localhost:3000/api

Build for production

Run npx nx build api to build the application. The build artifacts are stored in the output directory (e.g. dist/ or build/), ready to be deployed.

Run node dist/apps/api/main.js to run api

Find the documentation here

Docker

Ensure you hve docker installed on your machine.

Run npm install to install dependency.

copy .sample.env to env

Run docker-compose build to build the docker images.

Run docker-compose up to spin up docker container

You can access it on localhost:3000/api

Running tasks

To execute tasks with Nx use the following syntax:

npx nx <target> <project> <...options>

You can also run multiple targets:

npx nx run-many -t <target1> <target2>

..or add -p to filter specific projects

npx nx run-many -t <target1> <target2> -p <proj1> <proj2>

Targets can be defined in the package.json or projects.json. Learn more in the docs.

Set up CI!

Nx comes with local caching already built-in (check your nx.json). On CI you might want to go a step further.

Explore the project graph

Run npx nx graph to show the graph of the workspace. It will show tasks that you can run with Nx.

Connect with us!

About

Implement nest app using gRPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published