This is a basic app for notes management. Using this app u can view, add, remove and edit your notes.
Run the following command:
npx create-turbo@latest
This Turborepo includes the following packages/apps:
api
: a Nest.js appweb
: another Next.js appeslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
cd my-turborepo
pnpm build
To develop all apps and packages, run the following command:
cd my-turborepo
pnpm dev
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd my-turborepo
npx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
npx turbo link
Learn more about the power of Turborepo:
There is a Swagger documentation for the API module where you can find all the requests you can send to the API service.
To access Swagger, just run the local server with:
pnpm dev
And then just go to
The API has unit tests and e2e tests. To run them, use the following commands:
# unit tests
$ pnpm run test
# e2e tests
$ pnpm run test:e2e
# test coverage
$ pnpm run test:cov
In my Nest.js project, I seamlessly implemented the basic configuration and CRUD generator provided in the official documentation. Leveraging a combination of Server-Side Rendering (SSR) and Client-Side Rendering (CSR), I ensured optimal performance for the web application. The UI was crafted using the delightful shadnc/ui library along with the flexibility of Tailwind CSS, resulting in a highly customizable and visually appealing user interface.
To maintain a consistent and organized codebase, I adhered to the naming conventions outlined in the Next.js documentation. Additionally, I adopted the suggested component architecture from Shadcn's documentation, enhancing the project's maintainability and scalability.
Throughout the development process, the synergy between Nest.js, shadnc/ui, and Tailwind CSS proved to be a winning combination, eliminating potential roadblocks and contributing to the project's simplicity. This strategic alignment facilitated a smooth and efficient workflow, allowing for a seamless integration of backend and frontend components.