Sample website with Node(Express) and Python(Django)
Make sure you have the following software installed on your machine:
Use the following command to install the required packages:
npm installTo set up the required database tables, run the following command:
npm run create-tablesIf you want to populate the tables with sample data, use the following command:
npm run seed-dataTo start the server and run the project, use the following command:
npm run serverThis project involves a Python proxy server that forwards data from a Node.js Express server running on port 3001. Follow the instructions below to set up and run the proxy server.
Make sure you have the following software installed on your machine:
- Python (version 3.x recommended)
Ensure that your Node.js Express server is running on port 3001. If not, start the Node.js server before proceeding.
# Navigate to your Node.js project directory
cd your-node-express-project
# Start the Node.js server on port 3001
npm run serverTo run the Python proxy server, use the following command:
python proxy.py- The proxy server will now be running on port 8001.
- Note: Make sure that your Node.js Express server is running on port 3001 as the proxy server forwards data from this port.