Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mr-scrpt/medium-nest-prisma


https://github.com/mr-scrpt/medium-nest-prisma

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# ![Node/Express/Mongoose Example App](project-logo.png)

> ### NestJS codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld-example-apps) API spec.

---

## About

The project uses GRASP and SOLID patterns. There is an emphasis on the division of responsibility, layered architecture

## Note

The database for the project is used in a docker container, so you will need tools to work with the docker

## Download

```bash
git clone https://github.com/mr-scrpt/medium-nest-prisma.git
cd medium-nest-prisma
```

## Install dependencies

```bash
$ yarn install
```

## Start Postgres DB on docker container

```bash
$ docker-compose up -d
```

## Run migration for DB

```bash
$ yarn migrate:dev
```

## (Optional) Add seed data

```bash
$ yarn seed:dev
```

## Running the app

```bash
# development
$ yarn start:dev

# prod mode
$ yarn run start:prod

```