Skip to content

jpmvale/nestjs-twitter-api

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

This project is created for educational purposes, to teach basic Nestjs elements, and to display Prisma ORM.

Features

  • CRUD User
  • CRUD Post
  • Like/Unlike Post
  • Follow/Unfollow a User
  • Repost/Reply a Post
  • List all Repost/Replies from a PostId
  • List only Posts of followed Users
  • Upload Media on Post
  • BONUS: Authentication/Authorization
  • BONUS: Search feature with Caching
  • BONUS: Notification module

Installation

$ npm install

Create Docker Volume

# create the volume-postgresql volume
$ docker volume create volume-postgresql

Prisma migration

#run migrations
$ npm run prisma:migrate

#run generate
$ npm run prisma:generate

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published