Skip to content

aaravchauhan18/python-flask-postgresql-crud-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Flask PostgreSQL CRUD Application

This project is a web application built with Python Flask and PostgreSQL to manage student records.

Installation

  1. Clone the repository
git clone https://github.com/aaravchauhan18/python-flask-postgresql-crud-application.git
cd python-flask-postgresql-crud-application
  1. Set up the database

Create a PostgreSQL database named crud.

CREATE TABLE students (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
phone VARCHAR(255) NOT NULL
);

INSERT INTO students (id, name, email, phone) VALUES
(1, 'Aarav Chauhan', 'aaravchauhan2211@gmail.com', '7310628048');
  1. Configure database settings in app.py (e.g., DB_HOST, DB_USER, DB_PASSWORD).

  2. Install dependencies:

   pip install Flask psycopg2-binary
  1. Start the Flask application:
python app.py

About

Python Flask PostgreSQL Crud Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published