An open API service indexing awesome lists of open source software.

https://github.com/amamov/nest-next-typeorm-ssr-starter

NestJS + NextJS + Typeorm MVC SSR Starter
https://github.com/amamov/nest-next-typeorm-ssr-starter

boilerplate mvc nestjs nextjs ssr typeorm

Last synced: 7 months ago
JSON representation

NestJS + NextJS + Typeorm MVC SSR Starter

Awesome Lists containing this project

README

          

# NestJS + NextJS SSR Starter

> NestJS + NextJS + Typeorm MVC SSR Starter with [nest-next](https://github.com/kyle-mccarthy/nest-next) package

"Just Coding!"

## Tech Stack

- node, npm, typescript, docker, docker-compose, nodemon, tsx
- eslint, prettier
- jest, supertest
- nestjs(version 8), nextjs, typeorm
- nest-next

## Structure

- `pages` : client layer with nextjs
- `public` : served static files
- `server` : server layer with nestjs
- `nginx` : nginx to be a production-level dockerizing target that acts as a reverse proxy

## Getting Start

1. `$ git clone https://github.com/amamov/nest-next-typeorm-ssr-stater.git`

2. `$ npm i`

3. `$ rm -rf .git`

4. `$ npm run dev`

## Config .env

```.env
# app
NODE_ENV='development'
PORT=5500
DB_NAME=...
DB_HOST=...
DB_PORT=...
DB_USERNAME=...
DB_PASSWORD=...

# db
POSTGRES_DB=...
POSTGRES_USER=...
POSTGRES_PASSWORD=...

# db admin
PGADMIN_DEFAULT_EMAIL=...
PGADMIN_DEFAULT_PASSWORD=...
```