Welcome to the Turing Hall Backend project! This Node.js application serves as the backend for the Turing Hall application and includes IPC functionality with a Python script. This README provides instructions on how to set up and run the project effectively.
Before you get started, make sure you have the following prerequisites installed on your system:
- Node.js (version 14 or higher)
- Python 3 (for IPC)
- Virtual Environment (venv) for Python (recommended for setting up a virtual environment)
- Yarn (for Node.js dependencies)
-
Clone this repository to your local machine:
git clone https://github.com/Darahaas2001/turing-hall-backend.git
-
Navigate to the project directory:
cd turing-hall-backend -
Install Python dependencies using pip and set up a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt -
Install Node.js dependencies using Yarn:
yarn install
-
Start the application using the following command:
python3 ipc.py & yarn start -
The WebSocket will be activated, providing IPC functionality to Node.js and Python to respond to messages on the frontend using AIML.
The code for the frontend is available at Turing Hall Frontend Repository. Make sure to set up and configure the frontend to work seamlessly with this backend.