- 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.
$ git clone https://github.com/Rahulbaran/Sakha.git
$ python3 -m venv virtual
$ virtual/scripts/activate.bat
$ source virtual/bin/activate
(virtual)$ pip install -r requirements.txt
(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) |
> set FLASK_APP=run
> set FLASK_ENV=development
(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'
$ flask run
Checkout the app