Skip to content

sorena-paydar/reddit-clone

Repository files navigation

Reddit Clone

Description

A Nest.js API for Reddit Clone.

Installation

$ npm install

Environment variables

# Create .env and .env.test files according to .env.example
$ cp .env.example .env
$ cp .env.example .env.test

.env.test is used for e2e tests.

Database

# Create and run database
$ npm run db:dev:up

# Apply migrations
$ npx prisma migrate dev

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

Nest is MIT licensed.

Releases

No releases published

Packages

No packages published

Languages