Skip to content

SharloKK/basic-web-app-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic web app tutorial

This repository has a very basic example of backend and frontend communication. The backend is written in Python using the Flask framework and the frontend is HTML with plain JavaScript.

This project is explain on my Blog at: Python backend with JavaScript frontend: how to

Set up

Install the requirements for the backend by first creating a virtual environment in the backend directory:

cd backend
python -m venv venv

Then install the dependencies:

pip install flask flask-cors

Running the project

Start the backend server using the following command:

python app.py

Start the frontend using http-server:

http-server

Navigate using a browser to the address the frontend is hosted at. This is http://localhost:8080 by default.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 74.2%
  • Python 25.8%