qna app built using Flask and MySQL
Before you start using the app, you need to have the following installed on your machine:
- Python 3
- Flask
- MySQL
- Gunicorn(server)
- 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
- User authentication (sign up and log in)
- Ask questions
- Answer questions
- View questions and answers