Skip to content

jcatwork013/node-express-python-django-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-express-python-django-proxy

Overview

Sample website with Node(Express) and Python(Django)

Prerequisites

Make sure you have the following software installed on your machine:

Installation

Use the following command to install the required packages:

npm install

Database Setup

Create Tables

To set up the required database tables, run the following command:

npm run create-tables

Seed Data

If you want to populate the tables with sample data, use the following command:

npm run seed-data

Usage

To start the server and run the project, use the following command:

npm run server

Python Proxy Server

This 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.

Prerequisites

Make sure you have the following software installed on your machine:

  • Python (version 3.x recommended)

Usage

Run Node.js Express Server

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 server

Run Python Proxy Server

To 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages