Skip to content

mahmoudramadan0040/Social-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask_social_media

Requirement Features

* Create a social media website that has the following features:
    > user login,logout and registration system (using login_manager)
    > secure database record insertion
    > website has at least 5 pages (login,register,home,profile,friend requests)
    > user can do the following :
        > post new posts ( set privacy to friends only or Public or only me)
        > view other users' posts with 2 modes : friends only or All posts
        > view other users account and add them as friends
        > delete posts
        > update posts
        > update user's own info

Demo Project

https://youtu.be/CREVECnXTY4

Image Demo

profile page

screencapture-127-0-0-1-5000-profile-2023-07-13-19_39_19

login page

Capture2

register page

Capture3

home without login

Capture4

home after login

Capture

explore friends ( you can make friend request )

Capture5

friend requests

Capture6

How To run

1- create virtual environment using this command

     pip install virtualenv
     python<version> -m venv [virtual-environment-name]

2- then activate this environment using this command

    . venv/Scripts/activate

3- install all requirement pakage using this command

     pip install -r requirements.txt

4- add .env file then add this inside

     FLASK_APP=start.py
     FLASK_DEBUG=1

5- change connect string that inside __init__.py file in project to connect string your Db

     'postgresql://postgres:[password]@localhost:5432/[your-database-name ]'

6- run this file to create database

    python run_db create_db

7- finally run this command to run project

    flask run 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published