Skip to content

A basic social media app that allows users to connect with friends and share content. Users can create and share posts, photos, and videos. They can also follow other users, like posts, and comment on posts.

Notifications You must be signed in to change notification settings

Rahulbaran/Sakha

Repository files navigation

  • A basic social media app that allows users to connect with friends and share content. Users can create and share posts, photos, and videos. They can also follow other users, like posts, and comment on posts. The app is easy to use and can be accessed from any device.
  • Flask & JavaScript have been used to develop the app.

How to run it locally

Clone the project

$ git clone https://github.com/Rahulbaran/Sakha.git

Create the virtual environment

$ python3 -m venv virtual

Activate the virtual environment

Windows
$ virtual/scripts/activate.bat
Mac/Linux
$ source virtual/bin/activate

Install all the python packages using requirements.text

(virtual)$ pip install -r requirements.txt

Create a folder of name Database inside Sakha folder

(virtual)$ mkdir Sakha/Database

Create a file .env in the root folder and put the following inputs in the file which will be used in app configuration

INPUT NAME
SECRET_KEY
RECAPTCHA_PRIVATE_KEY (You will have to register your application in Google Recaptcha website to get private & public keys)
RECAPTCHA_PUBLIC_KEY
GMAIL_USERNAME
GMAIL_PASSWORD (You will have to generate it using google account)

In the terminal/command prompt setup the following configuration

Windows
> set FLASK_APP=run
> set FLASK_ENV=development
Mac/Linux
(virtual)$ export FLASK_APP=run && export FLASK_ENV=development

Activate your python interpreter & create a sqlite database inside Database folder using the following commands

>>> from Sakha import create_app, db
>>> with create_app().app_context():
        db.create_all()

You can also use MYSQL database. To setup the MYSQL Database for the application, put the following configuration inside .env file and follow the same path you took for creating sqlite database.

SQL_DATABASE_URI = 'mysql+pymysql://<username>:<password>@localhost/sakha'

Exit from the Python Interpreter & run the application

$ flask run

Checkout the app

About

A basic social media app that allows users to connect with friends and share content. Users can create and share posts, photos, and videos. They can also follow other users, like posts, and comment on posts.

Topics

Resources

Stars

Watchers

Forks