Skip to content

szluug/ux-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playground for Ux site

[ TODO: update]

Backends

Requirments

  • Python3

Get Started

Run inside top ux-site directory

$ python3 -m venv .venv
$ source .venv/bin/activate # on Linux
> .venv/Scripts/Activate.ps1 # on Windows
# Note
#
# On Microsoft Windows, it may be required to enable the Activate.ps1 script 
# by setting the execution policy for the user. 
# You can do this by issuing the following PowerShell command:
# 
# PS C:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser


(.venv) pip install -r backend/requirements.txt

For running flask application

(.venv) python backend/app.py

Add debug option in visual code:

Sample configuration in .vscode/launch.json

{
    "name": "Python: Flask",
    "type": "python",
    "request": "launch",
    "module": "flask",
    "env": {
        "FLASK_APP": "backend/app:app",
        "FLASK_ENV": "development"
    },
    "args": [
        "run",
        "--no-debugger"
    ],
    "jinja": true
},

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published