Project for FII Practic 2025 training, "Building Python Web Applications with AI Integration and Big Data Analytics", by 3pillar
Python
0
3 commits
updated Jan 30, 2026
A modern backend for a social media platform, built with Python & Flask. Features post creation, interaction, and AI-powered sentiment analysis.
# Python 3.10 required
python3.10 -m venv .venv
# Activate:
# On MacOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate
# Start Docker container (from project root)
docker-compose up -d
# Check container is running
docker ps
# Connect to DB
docker exec -it my_postgres psql -U admin -d socialmediadb
CREATE TABLE test ();
\dt
pip install -r requirements.txt
flask run
Test endpoints using Postman or similar tools.
# Run a specific test class
python -m unittest tests.integration_tests.test_posts.PostDatabaseIntegrationTestCase
# Run all tests & check coverage
coverage run -m unittest discover
coverage report
coverage html # Generates htmlcov/index.html
To clean up coverage data:
coverage erase
SocialMedia-App/
├── app.py
├── config.py
├── docker-compose.yml
├── requirements.txt
├── controllers/
├── models/
├── routes/
├── services/
└── tests/
Project for FII Practic 2025 training, "Building Python Web Applications with AI Integration and Big Data Analytics", by 3pillar
Python
0
3 commits
updated Jan 30, 2026
A modern backend for a social media platform, built with Python & Flask. Features post creation, interaction, and AI-powered sentiment analysis.
# Python 3.10 required
python3.10 -m venv .venv
# Activate:
# On MacOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate
# Start Docker container (from project root)
docker-compose up -d
# Check container is running
docker ps
# Connect to DB
docker exec -it my_postgres psql -U admin -d socialmediadb
CREATE TABLE test ();
\dt
pip install -r requirements.txt
flask run
Test endpoints using Postman or similar tools.
# Run a specific test class
python -m unittest tests.integration_tests.test_posts.PostDatabaseIntegrationTestCase
# Run all tests & check coverage
coverage run -m unittest discover
coverage report
coverage html # Generates htmlcov/index.html
To clean up coverage data:
coverage erase
SocialMedia-App/
├── app.py
├── config.py
├── docker-compose.yml
├── requirements.txt
├── controllers/
├── models/
├── routes/
├── services/
└── tests/