A simple social media made with Django
Get the source code π»
git clone https://github.com/foxy4096/Vitary.git
Go the the dir π
cd Vitary
Add the enviroment variables βοΈ
In Powershell or terminal π»
touch Vitary/.env
In .env
add the following variables β
DEBUG=True or False
EMAIL_ADDRESS [Optional if DEBUG is True]
EMAIL_PASSWORD [Optional if DEBUG is True]
SITE_ID [Optional if DEBUG is True]
SECURE_SSL_REDIRECT (Bool) [Optional if DEBUG is True]
CSRF_COOKIE_SECURE (Bool) [Optional if DEBUG is True]
Get the Google Drive JSON key from Here
Rename it to GOOGLE_DRIVE_KEY_FILE.json
and Put it in the Base Directory (At the ame level where the manage.py
is located)
Make a virtualenv π‘
pip install virtualenv
and
virtualenv venv
Install the dependencies π¨
pip install -r req.txt
Make Migrations πΏ
On Windows:
python manage.py makemigrations
On *nix systemm:
python3 manage.py makemigrations
Migrate the database πββοΈ
On Windows:
python manage.py migrate
On *nix systemm:
python3 manage.py migrate
Create the superuser π€΅
On Windows :
python manage.py createsuperuser
On *nix systemm:
python3 manage.py createsuperuser
Run the server π
On Windows:
python manage.py runserver
On *nix systemm:
python3 manage.py runserver
-
Python the programming language
-
Git Version Control System
-
Visual Studio Code Free source code editor