GithubHelp home page GithubHelp logo

lhajoosten / studdit Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 1.33 MB

Studdit is a platform to ask questions, answer them and share comments between users. The platform allows us to post a comment on popular and non-popular posts, but also to search for specific posts. It is also possible to see what your friends and the friends of your friends are doing.

License: MIT License

JavaScript 100.00%
backend-api nodejs nosql-database mongodb-atlas neo4j nosql-duo-assignment deployment heroku continous-integration continuous-delivery

studdit's Introduction

Studdit Build Status

Studdit is a platform to ask questions, answer them and share comments between users. The platform allows us to post a comment on popular and non-popular posts, but also to search for specific posts. It is also possible to see what your friends and the frieds of your friends are doing.

Back-end

  • Node.JS Node version
  • Mongoose npm version
  • NoSQL MongoDB
  • Express.JS: npm version

Project setup

npm install

API Endpoints

User

Endpoint Action
POST - /api/users Create a new user
GET - /api/users Getting all existing users
GET - /api/users/:id Get a user by given id
PUT - /api/users/:id Update a user by given id
Delete - /api/users/:id Delete a user by given id

Thread

Endpoint Action
POST - /api/threads Create a new thread
GET - /api/threads Getting all existing threads
GET - /api/threads/:id Get a thread by given id
PUT - /api/threads/:id Update a thread by given id
Delete - /api/threads/:id Delete a thread by given id
POST - /api/threads/:id/comment Post a comment to a thread by given id
POST - /api/threads/:id/upvote Upvote a thread by given id
POST - /api/threads/:id/downvote Downvote a thread by given id

Comment

Endpoint Action
POST - /api/comments Create a comment thread
GET - /api/comments Getting all existing comments
GET - /api/comments/:id Get a comment by given id
PUT - /api/comments/:id Update a comment by given id
Delete - /api/comments/:id Delete a comment by given id
POST - /api/comments/:id/comment Post a comment to a comment by given id
POST - /api/comments/:id/upvote Upvote a comment by given id
POST - /api/comments/:id/downvote Downvote a comment by given id

Friendship

Endpoint Action
POST - /api/friendships Create a friendship with a user
DELETE - /api/friendships Delete a friendship with a user

studdit's People

Contributors

lhajoosten avatar akkermans99 avatar dependabot[bot] avatar

Stargazers

Sandeep Devarapalli avatar

Watchers

James Cloos avatar Dion Koeze 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.