This is a chatbot application built using Flask and MongoDB. Please note that this is a practice project for a college assignment, so we have focused on delivering a simple and efficient solution.
Before setting up the application, ensure that you have the following requirements installed on your system:
- Python (version 3.6 or higher)
- pip (Python package installer)
- Virtualenv (tool to create isolated Python environments)
Use the package manager pip to install python package.
- Clone the repository to your local machine.
git clone git@github.com:ujjawalpoudel/chatbot-with-flask-python.git
- Navigate to the project directory.
cd chatbot-with-flask-python
- Create a virtual environment. Use the version number of python installed on your computer. check it using python --version
python3.11 -m venv chatbot_env
-
Activate the virtual environment.
a. For mac:
source chatbot_env/bin/activate
b. For windows:
chatbot_env\Scripts\activate.bat
-
Install the required Python packages.
pip install -r requirements.txt
-
Activate the virtual environment.
a. For mac:
source chatbot_env/bin/activate
b. For windows:
chatbot_env\Scripts\activate.bat
-
Start the Flask development server.
python main.py
- Access the application in a web browser by navigating to
http://localhost:5000
.
For detailed API documentation, please refer to the Postman Collection.
This concludes the setup readme for the Flask application. If you encounter any issues during setup or usage, please get in touch with the project maintainer for assistance.
Pull requests are welcome. For significant changes, please open an issue first to discuss what you would like to change.