An attempt to clone Quora's similar questions ML capability. A question-answer platform where users can ask questions and get answers from other users.
Similar Questions shown when adding a new question. (This section comes under dashboard and requires a user login)
Login as a user
Register an account
Dashboard that is visible after a successful login
Question format expectations when asking a question
Viewing an already asked question
- Python 3.7.9
- Node v14.16.0
- Docker & docker-compose
- vocab file. Download
here. Then place it within
Backend/model_api/model/
Setup the basic backend db
-
Go to
Backenddirectory and run docker-composedocker-compose -f docker-compose.dev.yaml up -d
-
Move to
Backenddirectory -
Add virtual environment using
python -m venv env -
Activate virtual environment how-to-activate - this depends on OS
-
Install project dependencies
pip install -r requirements.txt -
Create a
.envfile at the root of the Backend folder using the contents of.env.samplefile.
-
Move to
Backend\model_api\directory -
(Optional) To add hot-reloading, Add environment variable by running
export FLASK_DEBUG=1export FLASK_APP=app.py -
Run the app
python app.py
-
Move to
Backenddirectory -
Run migrations
python manage.py migrate -
Start the app
python manage.py runserver
-
Move to
frontenddirectory -
Install node dependencies
npm -i -
Start the node application
npm start





