teekize / Questioner-V2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maintainability

Heroku link

Questionner

Crowd-source questions for a meetup. 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

Getting started

This will give you what you need for the aplication to run locally

Requirements

  1. python 3.7
  2. Postman
  3. Git

Installing

  1. Clone this repository repo

  2. Install a virtual environment this command is for windows pip venv venv

  3. Then you activate the virtual envirionmnet this is for windows venv\Scripts\activate

  4. To test the api in your local machine install the the reuirements file pip install -r requirements.txt

  5. To run the application run the run.py file

Then test all the endpoinst using POSTMAN

Endpoints

Method Endpoint Description
POST /api/v2/auth/signup this endpoints registers a new user
POST /api/v2/auth/login this endpoints enables the user to login
POST /meetups this endpoint adds a new meetup
GET /meetups/<meetup_id> this endpoint gets a specific meetup
GET /meetups/upcoming/ this endpoint gets all upcoming meetups
POST /meetups/<meetup_id>/rsvp this questions create an rsvp response
DELETE /meetups/<meetup_id> this endpoint deletes a meetup
POST /questions this endpoints creates a new question
GET /questions this endpoints gets all questions
PATCH /questions/<question_id>/upvote this endpoint upvotes a question
PATCH /questions/<question_id>/downvote this endpoint downvotes a question
POST /comments/ this endpoints creates a new comment

Author

Teeka Elvis

About


Languages

Language:Python 100.0%