Skip to content

we will be creating a flask application which can generate REST, GraphQL and realtime websocket notifications for your postgres database

Notifications You must be signed in to change notification settings

ankit-gautam23/AutomaticAPIGeneration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step-1: Install Flask, Flask-SocketIO, Flask-GraphQL, Flask-RESTful, and psycopg2 packages using pip.

Step-2: Create a Flask application and initialize the SocketIO and GraphQL extensions.

Step-3: Set up a PostgreSQL database connection using the psycopg2 package.

Step-4: Define a RESTful API using Flask-RESTful for CRUD (Create, Read, Update, Delete) operations on the database.

Step-5: Implement a GraphQL schema using Flask-GraphQL and define resolvers to execute database queries.

Step-6: Use Flask-SocketIO to set up a WebSocket server to receive real-time updates from the database.

Step-7: Create a PostgreSQL trigger that sends notifications to the WebSocket server when data changes in the database.

Step-8: Implement a WebSocket event handler to receive and broadcast the notifications to connected clients.

Let's Get into it.

pip install Flask Flask-SocketIO Flask-GraphQL Flask-RESTful psycopg2

About

we will be creating a flask application which can generate REST, GraphQL and realtime websocket notifications for your postgres database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages