Giter Site home page Giter Site logo

questionbox's Introduction

questionbox

Web Interface similar to Stackoverflow.

Entity Relationship Diagram

image

Setup

1.) Import the questionbox.sql file into appropriate MySql database

2.) Configure credentials in ./config/database_config

3.) Start server using $ npm start

4.) Succes messages-

listening at 3000

Connected to the MySQL server

Api endpoints

POST /auth/signup BODY {user_name, first_name, last_name, email, user_password, bio}

POST /auth/login BODY {user_name,password}

GET /users/:name

GET /users/id/:id

PATCH /users/update BODY any of these fields {user_name, first_name, last_name, email, bio}

PATCH /users/resetpassword BODY {password}

DELETE /users/delete

GET /users/:id/follow

POST /users/:id/follow

POST /users/:id/unfollow

GET /users/:id/followers

GET /users/:id/following

POST /questions/add BODY {question, topics : [topic_id1, topic_id2, ...]}

GET /questions/ //all questions

GET /questions/?topic=topic_id //topic specific questions

GET /questions/:id

GET /questions/:id/upvoted

POST /questions/:id/upvote

GET /questions/:q_id/downvoted

POST /questions/:q_id/downvote

PATCH /questions/:id BODY {question}

DELETE /questions/:id

GET /questions/:q_id/follow

POST /questions/:q_id/follow

POST /questions/:q_id/unfollow

GET /questions/:q_id/followers

GET /questions/user/following

POST /topics BODY {name}

GET /topics

GET /topics/:t_id

PATCH /topics/:t_id BODY {name}

DELETE /topics/:t_id

GET /topics/:t_id/questions

POST /topics/question/:q_id BODY {topic_id}

GET /topics/question/:q_id

DELETE /topics/question/:q_id

GET /topics/:t_id/follow

POST /topics/:t_id/follow

POST /topics/:t_id/unfollow

GET /topics/:t_id/followers

GET /topics/user/following

POST /questioncomments/question/:q_id BODY {comment}

GET /questioncomments/:c_id

GET /questioncomments/question/:q_id

PATCH /questioncomments/:c_id BODY {comment}

DELETE /questioncomments/:c_id

GET /answers/question/:q_id

GET /answers/:a_id

POST /answers/question/:q_id BODY {answer}

GET /answers/:a_id/upvoted

POST /answers/:a_id/upvote

GET /answers/:a_id/downvoted

POST /answers/:a_id/downvote

PATCH /answers/:a_id BODY {answer}

DELETE /answers/:a_id

POST /answercomments/answer/:a_id BODY {comment}

GET /answercomments/:c_id

GET /answercomments/answer/:a_id

PATCH /answercomments/:c_id BODY {comment}

DELETE /answercomments/:c_id

questionbox's People

Contributors

akashdeeps19 avatar sujan242 avatar aniruddhpatil 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.