Giter VIP home page Giter VIP logo

my-quora-app's Introduction

my-quora-app

A Quora like basic web-app using DJango 2.2

Features

  • User can ask question
  • User can answer question
  • User can comment on answers
  • User can upvote and downvote
  • User can signup, login & logout

Screen shots

Question lists

Question Lists Unauth

Question Lists auth

Login

Login

Ask Question

Ask

Answer Question

Answer

Question details

Question details

Setup

Clone the project

git clone https://github.com/bksun/my-quora-app.git

create and start a a virtual environment

virtualenv env --no-site-packages

source env/bin/activate

Install the python package requirements using pip.

pip install -r requirements.txt

Run the migrate command to create database tables.

python manage.py migrate

Use the createsuperuser command to create a user who has superuser privileges.

python manage.py createsuperuser

Finally run the server using the runserver command.

python manage.py runserver

Testing

Linter test using Flake8

flake8 .

Unit tests and Coverage report.

pytest

Built with

Contribute

  1. Feel free to raise issue
  2. Highly appreciate for pull request

License

MIT

my-quora-app's People

Contributors

bksun avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

my-quora-app's Issues

Fix all linter issues.

It would better to get the author in a separate statement.

author = Author.objects.get(user = self.request.user )
question = Question.objects.create(author, question_text = question_text)

question = Question.objects.create(author = Author.objects.get(user = self.request.user ), question_text = question_text)

Regarding aksing question by user

Sir the problem is that when we put title and click on ask question button for raise question. The ask question page will not open.which show in admin pannel.
So sir how we will bring the ask question page while giving the title of the question and clicking on button ask question.

Improve the readme

Steps to:

  • Set up the dev environment.
  • makemigrations, migrate and running the server.

Add screenshots and info about the project.

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.