https://github.com/dangphu2412/nestjs-templates
Structure NestJS Boilerplate 💪, Monolithic & Microservices 😍, Typescript 😍, TypeORM 🥳
https://github.com/dangphu2412/nestjs-templates
microservice monolith nestjs-boilerplate typeorm
Last synced: about 2 months ago
JSON representation
Structure NestJS Boilerplate 💪, Monolithic & Microservices 😍, Typescript 😍, TypeORM 🥳
- Host: GitHub
- URL: https://github.com/dangphu2412/nestjs-templates
- Owner: dangphu2412
- Created: 2022-06-04T06:22:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-10T05:44:50.000Z (about 3 years ago)
- Last Synced: 2023-06-10T06:22:33.846Z (about 3 years ago)
- Topics: microservice, monolith, nestjs-boilerplate, typeorm
- Language: TypeScript
- Homepage:
- Size: 2.1 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nestjs & Next templates
[](https://github.com/dangphu2412/nestjs-templates)
> This is an ever-evolving, very opinionated architecture and dev environment for new node projects using [NestJS](https://nestjs.com). Questions, feedback, and for now, even bikeshedding are welcome. 😄
## Nestjs monolithic template
```bash
# 1. Clone the repository or click on "Use this template" button.
git clone https://github.com/dangphu2412/nestjs-templates.git
# 2. Enter your newly-cloned folder.
cd base-project/backend-nestjs
# 3. Create Environment variables file.
cp .env.example .env
# 3. Install dependencies. (Make sure yarn is installed: https://yarnpkg.com/lang/en/docs/install)
yarn
```
### Before running project
- [ ] Not having postgres or even pgadmin? We already prepare these tools in [docker-compose.yml](https://github.com/dangphu2412/nestjs-templates/blob/main/base-project/backend-nestjs/docker-compose.yml)
- [ ] Next, try running one of services
- [ ] Prepare .env variables
```bash
docker-compose up -d postgres // Which will only run postgres image in compose
```
### Running project
```bash
yarn start:dev
# Server would run on port 3000 by default config.
# You can take a look at some example api: http://localhost:3000/api
```
### Monolithic features:
[Read more here](https://github.com/dangphu2412/nestjs-templates/tree/main/base-project/backend-nestjs)
## Nestjs microservice template
**_`IN PROGRESS`_**