Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSPython

Backend: Flask + MongoDB

Quick Start (Windows PowerShell)

  1. Create/refresh virtual environment and install deps:
cd "C:\Users\alanx\OneDrive\Desktop\WSPython"
if (Test-Path .venv) { Remove-Item -Recurse -Force .venv }
py -3 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -r requirements.txt
  1. Optional: set your Mongo connection string (defaults to the sample in code):
$env:MONGO_URI = "your_mongodb_connection_uri"
$env:MONGO_DB = "oop"
$env:MONGO_COLLECTION = "Customers"
  1. Run the backend:
python .\backend.py

Notes:

  • The app runs with debug=True but use_reloader=False to avoid a Windows socket issue with the reloader on some Python/werkzeug versions. If you want hot reload, consider flask --app backend run --debug or trying another WSGI server.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages