Skip to content

bradenhs/python-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Requirements

Download project and open in code editor

Run this (one line at a time) in your terminal:

git clone https://github.com/bradenhs/python-webserver.git
code python-webserver

Follow VSCode's prompt to install some extensions if you don't already have them.

Run locally

Open a VSCode terminal to run these commands.

Setup Python Virtual Environment

python3 -m venv venv
source venv/bin/activate

This allows you to have individual dependencies installed per project.

Install project dependencies

pip install -r requirements.txt

Once in the virtual environment this command will install project dependencies in the ./venv directory.

Start server

flask --app server run

It will start on http://localhost:5000

Run Python Client

python3 ./client.py

Make a couple sample calls to the server from a Python script.

Open Web Client

open http://localhost:5000

Interact with the API via a web page.

Helpful resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages