Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mr-scrpt/medium-nest-prisma
https://github.com/mr-scrpt/medium-nest-prisma
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mr-scrpt/medium-nest-prisma
- Owner: mr-scrpt
- Created: 2023-05-12T12:20:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-21T20:09:25.000Z (5 months ago)
- Last Synced: 2024-08-01T19:55:18.258Z (3 months ago)
- Language: TypeScript
- Size: 469 KB
- Stars: 12
- Watchers: 1
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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```