Skip to content

foxy4096/Vitary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Vitary

A simple social media made with Django

CodeQL

Installation πŸ› οΈ

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

Tools πŸ”§