pj8912 / qna-app

qna app built using Flask and MySQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qna-app

qna app built using Flask and MySQL

Python Flask

Prerequisites

Before you start using the app, you need to have the following installed on your machine:

  • Python 3
  • Flask
  • MySQL
  • Gunicorn(server)

Installation

  • Clone the repository
git clone https://github.com/pj8912/qna-app.git
  • Create a virtual environment
python3 -m venv myenv
source myenv/bin/activate
  • Install the requirements
pip install -r requirements.txt
  • Create .env file and add values for the following

  • DB_HOST=YOUR_DB_HOST

  • DB_USERNAME=YOUR_DB_USERNAME

  • DB_PWD=YOUR_PWD

  • DB_NAME=YOUR_DB_NAME

  • APP_NAME=YOUR_APP_NAME

  • Export sql file from sql/qna.sql

  • Run app

gunicorn --bind 0.0.0.0:5000 wsgi:app

Features

  • User authentication (sign up and log in)
  • Ask questions
  • Answer questions
  • View questions and answers

Contributors

About

qna app built using Flask and MySQL


Languages

Language:Python 56.8%Language:HTML 43.2%