/social-app_backend

Social App backend

Primary LanguageTypeScript

Social App backend

Install

npm install

Start the server

  • development:
npm run dev
  • production:
npm run prod
  • test:
npm run test

Stack

  • Fastify
  • MongoDB with Mongoose

Database

example

erDiagram
USER ||--|| ROLE: is
USER ||--o{ PUB: create
USER }o--|| PUB: like
USER {
  string email
  string passwordHash
  string username
}
ROLE {
  string name
}
PUB {
  string title
  string text
  string image_path
  date   created_at
}
Loading