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

https://github.com/leoantony72/rplace

Backend Development of reddit r/place🐱‍💻
https://github.com/leoantony72/rplace

golang nginx redis redisgo

Last synced: 2 months ago
JSON representation

Backend Development of reddit r/place🐱‍💻

Awesome Lists containing this project

README

        

## Introduction

For those who don't know reddit r/place was one of the biggest social experiments where anyone can place a pixel on a 1000x1000 pixel board.

[reddit R/place Official](https://www.reddit.com/r/place/)

# Docker Build

```bash
docker-compose up --build
```
```bash
cd web-service && go run src/main.go
```
```bash
cd broadcast && go run src/main.go
```

 

## Technologies Used

 

- Golang
- Gin
- gorilla websocket
- Redis
- Kafka
- zookeeper

 

## Summary

 

I am new to golang so the project structure might be weird for those who are checking it out. In the src there are controller, services, model, config. Folders such as services and model will be framework agnostic. Controllers leverage services and service folder(data access layer) contains all the business logic and will be able to interact with Model(database layer).

When request comes in Controllers pass it to service and does some work or is send to the database through the model.Results are passed back up to the service layer and then to the controllers.