Skip to content

REST APIs in Python Flask to access Data in DynamoDB

Notifications You must be signed in to change notification settings

pamruta/DynamoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST APIs built in Python Flask to Access AWS Dynamo-DB Database

front-end

To start python flask web application, run

python3 dynamodb-api.py [PORT]

This will start the web service at http://localhost:5000 or http://localhost:PORT

Internally, dynamodb-api.py uses AWS SDK boto3 to fetch data from Dynamo-DB table.

Front-end is built in HTML + CSS + Javascript and internally, calls the REST APIs to access the database. These HTML web-pages can be found under /templates

Python Scripts under directory /python :

To initialize the database using JSON file, run

python3 load-data.py [JSON]

Sample JSON data-file is provided under JSON/dummy.json

To add new record to database, run

python3 add-item.py [JSON]

Sample JSON file to add new entry can be found under JSON/item.json

About

REST APIs in Python Flask to access Data in DynamoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published