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

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

A Realtime Social Networking API built with Django Ninja
https://github.com/kayprogrammer/socialnet-v2

django django-ninja docker pgadmin postgresql

Last synced: 5 months ago
JSON representation

A Realtime Social Networking API built with Django Ninja

Awesome Lists containing this project

README

          

# SOCIALNET V2 | Social Networking API in Django Ninja Rest Framework

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

#### DJANGO DOCS: [Documentation](https://docs.djangoproject.com/en/4.2/)
#### DJANGO NINJA REST FRAMEWORK DOCS: [Documentation](https://django-ninja.dev/)

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

## How to run locally

* Download this repo or run:
```bash
$ git clone git@github.com:kayprogrammer/socialnet-v2.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
```

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

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

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

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

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

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

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

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

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

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

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

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