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/
- Host: GitHub
- URL: https://github.com/oldcorvus/socialmedia
- Owner: oldcorvus
- Created: 2022-03-11T08:15:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T13:43:50.000Z (about 2 years ago)
- Last Synced: 2025-04-09T02:11:59.092Z (6 months ago)
- Topics: ckeditor, django, django-filters, django-rest-framework, docker, docker-compose, dockerfile, drf, drf-jwt, drf-yasg, easy-thumbnails, jalali-date, jwt-authentication, postgresql, psycopg2
- Language: JavaScript
- Homepage:
- Size: 12.7 MB
- Stars: 21
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 ...