In this project you find 2 directories
backend
containing the server side python codefrontend
containing the client side typescript code.
In both these directories, it is your job to complete the missing modules and add necessary functionalities to make the app fully functional.
Requirements: Python 3.10 or above. We will test your submission against Python 3.10.
main.py
which is the entry point to our server- This project has a few Python packages as dependencies, you can install them in your virtual environment using
requirements.txt
. If you were to use other dependencies, then please add them torequirements.txt
. - We will be using
conda
package manager to create a virtual environmentchatbot
usingconda create -n chatbot python=3.10
and thenconda activate chatbot
to activate the environment. - Then install the python packages using
pip install -r requirements.txt
To launch the server, navigate to the backend
directory and run:
This will start the server at http://127.0.0.1:8000/
The project structure within the frontend
directory follows the official create-react-app
structure as in the docs. Some of the files have been removed for convenience & brevity.
Requirements: We are using node V20.11.1
and npm 10.2.4
. They can be downloaded via installer. For more information check here
-
Navigate to the
frontend
directory and runnpm install
-
Then you can run:
This will launch the app in development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.