-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(examples): add with-nestjs
example
#8162
Open
Neosoulink
wants to merge
8
commits into
vercel:main
Choose a base branch
from
Neosoulink:feat/with-nestjs
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Description - Add the `with-nestjs` example - Init a basic `web nextjs` app - Init a basic `api nestjs` app - use the basic turborepo config
### Description - Set general `eslint` & `perttier` config into `@repo/eslint-config` - Add a base `eslint` config file - Move common `eslint` & `prettier` support into `@repo/eslint-repo` - Add a base `prettier` file - Remove format script from `apps/api` and use root `format` script
### Description - Mix the root `,gitignore` with the `nestjs` generated `.gitignore`
### Description - Add a new tsconfig file for `nestjs` into `@repo/typescript-config`. - Add `@repo/typescript-config` as `apps/api` dev-dependency. - Extends `@repo/typescript-config/nestjs.json`
### Description - Add `@repo/jest-config` package - Configure a base common jest config file - Add a `nestjs` config file - Add a `nextjs` config file - Use `playwright` for `NextJs` e2e testing - Add a base unit & e2e Nextjs testes - Sync testes command with turborepo
### Description - Add a `@repo/api` package - Use `nestjs` environment setup - Add links `entity` and `dto` examples - Sync/Use `@repo/api` into `apps/api` - Add `Link` resource (CRUD) example - Sync/Use `@repo/api` into `apps/web` - Retrieve links frorm `apps/api` - Refactor root page unit-test for async component
### Description - Update the root `README` documentation - Update the `apps/api` `README` documentation - Update the `apps/web` `README` documentation
turbo-orchestrator
bot
added
area: examples
Improvements or additions to examples
needs: triage
New issues get this label. Remove it after triage
owned-by: turborepo
labels
May 16, 2024
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Neosoulink is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
Neosoulink
changed the title
Feat |
feat(examples): add May 17, 2024
with-nestjs
example integrationwith-nestjs
example
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: examples
Improvements or additions to examples
needs: triage
New issues get this label. Remove it after triage
owned-by: turborepo
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Related issue: #8131
I recently created an issue where I explained why it's useful to use
Nestjs
withTurborepo
.This PR adds a new example integration with
nestjs
!I recorded a short video showing how it's working:
turborepo_with-nestjs_commands-test.mov
Testing Instructions
This new example is located at
./examples/with-nestjs/
.It uses a basic
turborepo nextjs
forapps/web
and a customizednestjs
app located atapps/api
.To launch all the apps and packages in dev mode, run
pnpm run dev
.The
apps/api
server includes a basic resource (CRUD) example where theapps/web
use theapps/api
links.findAll
API methods to retrieve the displayed links.They use the same package
@repo/api
to retrieve the sharedentity
anddto
s.Even if the
@repo/api
mainly uses thenestjs
configuration, it can be used for Nextjs and/or any other kind of apps.For more information, I documented it in the
root/README
Will close #8131