An open API service indexing awesome lists of open source software.

https://github.com/oldcorvus/socialmedia

sample : https://simplesocialmediamoel.eu.pythonanywhere.com/
https://github.com/oldcorvus/socialmedia

ckeditor django django-filters django-rest-framework docker docker-compose dockerfile drf drf-jwt drf-yasg easy-thumbnails jalali-date jwt-authentication postgresql psycopg2

Last synced: 3 months ago
JSON representation

sample : https://simplesocialmediamoel.eu.pythonanywhere.com/

Awesome Lists containing this project

README

          

# Django Social Media With RestApi using DRF and JWT authentication

## Setup

The first thing to do is to clone the repository:

```sh
$ git clone https://github.com/oldcorvus/social-media.git
```

Create a virtual environment to install dependencies in and activate it:

```sh
$ virtualenv env
$ source env/bin/activate
```

Then install the dependencies:

```sh
(env)$ pip install -r requirements.txt
```

Once `pip` has finished downloading the dependencies:
```sh
(env)$ cd app
(env)$ python manage.py runserver --settings=socialMedia.settings.test

```
And navigate to `http://127.0.0.1:8000/`.

## Running Locally with Docker

1.build the image:

```sh
$ docker-compose build .
```
2.Spin up the containers
```sh
$ docker-compose up
```
then view the site at http://localhost:8000/

## Walkthrough

Before you interact with the application, go to settings and set up
secret key.

## Tests

To run the tests, `cd` into the directory where `manage.py` is:
```sh
(env)$ python manage.py test --settings=socialMedia.settings.test

```
## API Docs
navigate to `http://127.0.0.1:8000/swagger/`

## Features
rest api using drf,
jwt authentications,
activity stream,
ajax scrolling , and ...