Skip to content

Social Network API on Django 3 (DRF, djoser, SimpleJWT, Channels)

Notifications You must be signed in to change notification settings

5kif4a/social-network-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Network Back-end API - Django 3

Client realization with React here

Installation

Python 3.7+ required
Default DBMS: SQLite 3
Using other DBMS you can find here
Download source code:

$ git clone https://github.com/5kif4a/social-network-backend.git
$ cd project_folder

Create virtual environment:

$ python -m venv venv

Activate venv:

$ source venv/bin/activate

Install requirements:

$ pip install -r requirements.txt

Create .env file in root of the project folder:

$ touch .env

Environment variables:

# On develepment DEBUG=1, on production DEBUG=0
DEBUG=1
SECRET_KEY=your_secret_key

Migrate database:

$ python manage.py makemigrations
$ python manage.py migrate

Create superuser:

$ python manage.py createsuperuser

Run Django App server:

$ python manage.py runserver

Django deployment see here

Used Libraries

Releases

No releases published

Packages

No packages published

Languages