Skip to content

imran517/flask-py-peewee-sqlite-api

Repository files navigation

flask-py-sqlite-api

A simple api using flask (python) peewee (ORM) and sqlite

Requirements

Diagram

Alt text

Components

  • config (config.json, config.py)

    • configuration file
  • server (api.py)

    • creates server and listens on a port 3000
  • controller (controller.py)

    • defines routing and request handlers
  • service (service.py)

    • handles business logic
  • model (model.py)

    • data model using pewee ORM
  • dbContext (dbContext.py)

    • handles db connection
  • database (sqlite)

    • sqlite database

Run

Run the following command from the root directory:

python api.py

Tests

Try the following urls in Postman.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages