Skip to content

Team Dojo deferral Project. Questioner is an online meetups APi designed to enable people to schedule meetings, ask questions, comment and place votes on those comments. Back end: Python Django, PostgreSQL

Notifications You must be signed in to change notification settings

KabohaJeanMark/questioner

 
 

Repository files navigation

Questioner

by The dojos

Coverage Status

Introduction

Questioner is an online meetups APi designed to enable people to schedule meetings, ask questions, comment and place votes on those comments.

Tools and Languages

Python, Django, PostgreSQL

Installation

- Clone this repository.

- Setup a virtual environment and activate it.

- Install the requirements.txt

- Add a ".env" file that has:

    - export DJANGO_SETTINGS_MODULE="questioner.settings"

    - export DATABASE_NAME

    - export DATABASE_HOST

    - export DATABASE_USER

    - export DATABASE_PASSWORD

Running the application

Open the directory of the application in the terminal and execute:

python manage.py migrate
python manage.py runserver

In a browser type the Url: http//localhost:8000.

Login

Using postman login with endpoint: http//localhost:8000/auth/login Provide your credentials under the body tab { "username": "your-username", "password": "your-password" }

Endpoints

Method Endpoint Description
User
GET / Index
POST /accounts/login login
POST /accounts/signup signup
Meetups
POST /meetups Add a meetup
GET /meetups Get all meetups
GET /meetups/2 Get meetup 2
PUT /meetups/2 Update meetup 2
DELETE /meetups/2 Delete meetup 2
Tags
POST /tags create a tag
GET /tags Get all tags
DELETE /tags/2 Delete tag 2
POST /meetups/tags Add tag 2 to meetup 2
DELETE /meetups/2/tags/2 remove tag 2 from meetup 2
Questions
POST meetups/2/questions/ Add a question
GET meetups/2/questions/ Get all questions
GET meetups/2/questions/12 Get question 12
PUT meetups/2/questions/12 Update question 12
DELETE meetups/2/questions/12 Delete question 12
Votes
POST meetups/2/questions/12/upvote Upvote question 12
POST meetups/2/questions/12/downvote Downvote question 12

About

Team Dojo deferral Project. Questioner is an online meetups APi designed to enable people to schedule meetings, ask questions, comment and place votes on those comments. Back end: Python Django, PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Languages

  • CSS 45.4%
  • JavaScript 36.0%
  • Python 18.6%