Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kayprogrammer/socialnet-v1

A Realtime Social networking API built with django rest framework
https://github.com/kayprogrammer/socialnet-v1

django django-channels django-rest-framework docker pgadmin4 postgresql

Last synced: 21 days ago
JSON representation

A Realtime Social networking API built with django rest framework

Awesome Lists containing this project

README

        

# SOCIALNET V1

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/drf.png?raw=true)

#### DJANGO DOCS: [Documentation](https://docs.djangoproject.com/en/4.2/)
#### DJANGO REST FRAMEWORK DOCS: [Documentation](https://www.django-rest-framework.org/)

#### PG ADMIN: [Documentation](https://pgadmin.org)

## How to run locally

* Download this repo or run:
```bash
$ git clone [email protected]:kayprogrammer/socialnet-v1.git
```

#### In the root directory:
- Install all dependencies
```bash
$ pip install -r requirements.txt
```
- Create an `.env` file and copy the contents from the `.env.example` to the file and set the respective values. A postgres database can be created with PG ADMIN or psql

- Run Locally
```bash
$ python manage.py migrate
```
```bash
$ uvicorn socialnet.asgi:application --reload
```

- Run With Docker
```bash
$ docker-compose up --build -d --remove-orphans
```
OR
```bash
$ make build
```

- Test Coverage
```bash
$ pytest --disable-warnings -vv
```
OR
```bash
$ make test
```

## Docs

#### Swagger: [Documentation](https://swagger.io/docs/)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display1.png?raw=true)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display2.png?raw=true)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display3.png?raw=true)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display4.png?raw=true)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display5.png?raw=true)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display6.png?raw=true)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display7.png?raw=true)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display8.png?raw=true)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display9.png?raw=true)

![alt text](https://github.com/kayprogrammer/socialnet-v1/blob/main/display/display10.png?raw=true)