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🐱💻
- Host: GitHub
- URL: https://github.com/leoantony72/rplace
- Owner: leoantony72
- Created: 2022-07-27T16:19:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-22T07:28:37.000Z (12 months ago)
- Last Synced: 2025-03-27T02:39:09.260Z (3 months ago)
- Topics: golang, nginx, redis, redisgo
- Language: Go
- Homepage:
- Size: 36.1 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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.