Giter VIP home page Giter VIP logo

deal's Introduction

system design

db design

thi is db design

  • author is system user that can create article, comment in this article and thumbs up/down.
  • author have name, email , password, jobTitle and array of article that he write (ref ID to article).
    • but author have also articleThumbsUpCount, and articleThumbsDownCount this is for good performance no need to do any thing if you need to count the thumbs up/down for his/her article. when some one thumbs up/down article => go to his owner and add one to count
  • article have title, body and author that write this article (ref ID to author)
  • and have array of comments that write to this article (ref ID to comment)
  • and also have thumbs up/down count for good performance

so when one thumbs an article we add one to owner of this article and this article also

  • comment have body, author who write this comment and article that comment belongs to it

  • and other two models thumbsDown, thumbsUp have author and article. so when need to get all thumbs by given user we get from this tables,

how to run project

 docker-compose up

and server will start at port 3000

and you can run test by

npm run test

deal's People

Contributors

ahmedsaptan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.