Giter Club home page Giter Club logo

questioner's Introduction

Questioner

Questioner helps the meetup organizer prioritize questions to be answered. Other users can vote on asked questions and they bubble to the top or bottom of the log.

Frontend

  • Only Vanilla JavaScript, (No Frontend Framework)
  • HTML
  • CSS

Backend:

Installation


git clone https://github.com/itsgracian/Questioner

cd questioner

npm install

To start the server


npm start


# To Start the server using nodemon package

npm run dev

Running Test


npm test

API Reference

# Users API

API METHODS API URL DESCRIPTIONS
POST https://protected-beach-95106.herokuapp.com/api/v1/signup this allows user to create account.
POST https://protected-beach-95106.herokuapp.com/api/v1/signin this allows user to signin or login to his/her account
GET https://protected-beach-95106.herokuapp.com/api/v1/users/username this allows other users to find user by username
PATCH https://protected-beach-95106.herokuapp.com/api/v1/users it allows user to update account
PATCH https://protected-beach-95106.herokuapp.com/api/v1/users/change-password It allows users to change their password
GET https://protected-beach-95106.herokuapp.com/api/v1/users/current/user It allows to find current user who logged in
PATCH https://protected-beach-95106.herokuapp.com/api/v1/users/profile/picture It allows users to change their profile picture
DELETE https://protected-beach-95106.herokuapp.com/api/v1/users It allows User to delete his/ her account

Meetups API

API METHODS API URL DESCRIPTIONS
POST https://protected-beach-95106.herokuapp.com/api/v1/meetups this allows user to create meetups but this works only for user who are admin
GET https://protected-beach-95106.herokuapp.com/api/v1/meetups this allows users to view all created meetups
GET https://protected-beach-95106.herokuapp.com/api/v1/meetups/v/:id this allows users to view single meetup and its number of created questions.
GET https://protected-beach-95106.herokuapp.com/api/v1/meetups/v/questions/:meetupId It allows users to view asked questions on single meetup.
GET https://protected-beach-95106.herokuapp.com/api/v1/meetups/m/upcoming It allows users to view upcoming meetups
DELETE https://protected-beach-95106.herokuapp.com/api/v1/meetups/:id this allow user to delete meetup but this route works only for user who are admin
PATCH https://protected-beach-95106.herokuapp.com/api/v1/meetups/:id It allows user to update meetup but it works only for admin.
POST https://protected-beach-95106.herokuapp.com/api/v1/meetups/:id/images It allows user to add images to a meetup and it is private route, it only works for admin.
POST https://protected-beach-95106.herokuapp.com/api/v1/meetups/:id/tags It allows user to add tags to a meetup and it is private route, it only works for admin.

Questions API

API METHODS API URL DESCRIPTIONS
POST https://protected-beach-95106.herokuapp.com/api/v1/meetups/:meetupId/questions It allows user to ask question on specific meetup.
DELETE https://protected-beach-95106.herokuapp.com/api/v1/questions/:questionId This allows user to delete his/her question on a meetup.
GET https://protected-beach-95106.herokuapp.com/api/v1/questions This allows user to view the question he/she asked on a meetup.
POST https://protected-beach-95106.herokuapp.com/api/v1/questions/:questionId/upvote It allows user to upvote asked questions on specific meetup. user is only allowed to upvote question once.
POST https://protected-beach-95106.herokuapp.com/api/v1/questions/:questionId/downvote It allows user to downvote asked questions on specific meetup. user is only allowed to downvote question once.

Comments API

API METHODS API URL DESCRIPTIONS
POST https://protected-beach-95106.herokuapp.com/api/v1/comments/:questionId It allows users to add comment on asked questions.
GET https://protected-beach-95106.herokuapp.com/api/v1/comments/:id It allows users to view and edit his/her comment.
PATCH https://protected-beach-95106.herokuapp.com/api/v1/comments/:id It allows users to update his/her comment.
DELETE https://protected-beach-95106.herokuapp.com/api/v1/comments/:id This allows users to delete his/her comment.

HOSTED LINK.

FullStack APP also is hosted on heroku. Use this link on heroku https://protected-beach-95106.herokuapp.com

questioner's People

Contributors

itsgratien 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.