https://github.com/kir-dev/next-nest-template
NestJS + NextJS template repository with Yarn workspaces, shadcn/ui
https://github.com/kir-dev/next-nest-template
Last synced: 5 months ago
JSON representation
NestJS + NextJS template repository with Yarn workspaces, shadcn/ui
- Host: GitHub
- URL: https://github.com/kir-dev/next-nest-template
- Owner: kir-dev
- Created: 2024-04-22T19:02:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T07:24:43.000Z (over 1 year ago)
- Last Synced: 2025-03-24T08:31:19.704Z (over 1 year ago)
- Language: JavaScript
- Size: 1.22 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NestJS + NextJS Starter Project by Kir-Dev
This is a starter project for a fullstack application using NestJS and NextJS.
It includes a basic setup for a NestJS as backend and a NextJS as frontend,
including shadcn/ui, ESLint, Prettier, and GitHub Actions.
## Getting Started
### Prerequisites
- Node.js 22
- Pnpm 10
### Installation
You only need to install dependencies in the root directory.
```bash
pnpm install
```
### Linter and Formatter Configuration
It is a must to use ESLint and Prettier in this project.
Set up ESLint and Prettier in your IDE and check `fix on save` or `format on save` options.
You can run the following commands to check linting and formatting issues.
```bash
pnpm lint
# or
pnpm lint:fix
```
```bash
pnpm format:check
# or
pnpm format
```
### Development
You can run the backend and frontend separately.
```bash
pnpm start:backend # Starts on http://localhost:3001
```
```bash
pnpm start:frontend # Starts on http://localhost:3000
```
### After Development
You can build the frontend and run the application.
```bash
pnpm build:frontend
```
Or build the backend.
```bash
pnpm build:backend
```
There are recommended GitHub Actions workflows for this setup, which will fail if one of the following commands fails:
```bash
pnpm lint
```
```bash
pnpm format:check
```
```bash
pnpm build:backend
```
## Happy Coding!