This project demonstrates a basic integration of Node.js, Python, HTML, and CSS to build a simple web application with both frontend and backend capabilities.
-
Frontend:
Built with HTML and CSS to create a responsive and user-friendly interface. -
Backend:
- Node.js handles server-side operations and routes.
- Python is used for additional processing, such as data analysis or machine learning.
-
Integration:
Seamless communication between Node.js and Python using APIs or child processes.
Follow the steps below to run the project locally:
git clone https://github.com/dawciobiel/node-js-python-html-css-example.git
cd node-js-python-html-css-example
Make sure you have Node.js installed. Run:
npm install
Ensure you have Python 3.x installed. Install required Python packages:
pip install -r requirements.txt
Run the Node.js server:
node server.js
Run the Python process for additional functionality:
python script.py
Open your browser and navigate to:
http://localhost:3000
node-js-python-html-css-example/
│
├── frontend/ # Contains HTML and CSS files
│ ├── index.html # Main HTML file
│ └── styles.css # CSS styles
│
├── backend/ # Node.js backend
│ ├── server.js # Node.js server
│ └── routes/ # API routes
│
├── scripts/ # Python scripts
│ └── script.py # Example Python script
│
├── package.json # Node.js dependencies
├── requirements.txt # Python dependencies
└── README.md # Project documentation
- Node.js (v16 or higher)
- Python (v3.x)
- Browser (Chrome, Firefox, etc.)
This project is licensed under the MIT License.