mbrsagor / notepad

Python flask notepad API services backend web app

Home Page:https://github.com/mbrsagor/notepad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notepad

The notepad app for daily note for everyone flask API based service application which the api will use mobile application.

Installation to local or production server.

Setup
git clone https://github.com/mbrsagor/notepad.git
cd notepad
virtualenv venv --python=python3.10
source venv/bin/activate
Run:
python run app.py

Manual db migration

flask shell
from app import db
db.create_all() 
Resources:
https://flask-sqlalchemy.palletsprojects.com/en/2.x/quickstart/
Flask shell:
from app import NoteModel
note = NoteModel.query.all()
try:
    response = requests.get('http://api.open-notify.org/astros.json', timeout=5)
    response.raise_for_status()
    # Code here will only run if the request is successful
except requests.exceptions.HTTPError as errh:
    print(errh)
except requests.exceptions.ConnectionError as errc:
    print(errc)
except requests.exceptions.Timeout as errt:
    print(errt)
except requests.exceptions.RequestException as err:
    print(err)

About

Python flask notepad API services backend web app

https://github.com/mbrsagor/notepad


Languages

Language:Python 95.8%Language:Dockerfile 4.2%