https://github.com/rac-sri/snake-game
Project made for Redis 'Beyond Cache' Hackathon.
https://github.com/rac-sri/snake-game
event-driven-architecture nodejs react-native react-native-game-engine redis
Last synced: 2 months ago
JSON representation
Project made for Redis 'Beyond Cache' Hackathon.
- Host: GitHub
- URL: https://github.com/rac-sri/snake-game
- Owner: rac-sri
- License: mit
- Created: 2020-05-23T10:23:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:13:19.000Z (over 3 years ago)
- Last Synced: 2024-01-10T17:43:50.043Z (over 2 years ago)
- Topics: event-driven-architecture, nodejs, react-native, react-native-game-engine, redis
- Language: TypeScript
- Homepage:
- Size: 7.4 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake Game
### Inspiration
Redis was a database, I have heard several times about from various resources. This hackathon conducted by the team allowed me to study this awesome technology and apply it in a real-world scenario.
## Installation
For Backend:
```
1. Start redis server
2. cd api
3. npm i
4. node index.js
```
For front end:
> Replace api call link to ```localhost:3050``` if you want to run the application locally
```
1. cd SnakeApp
2. npm i
3. npm start
4. npm run android || npm run ios
```
### What it does
My app is basically, as the name suggests is a snake game. The advantage of using a database like Redis over other databases like Mongo, SQL, lies in the fact that for the data required to be fetched for these types of games, in no way require us to waste time in computing querying through a database. All that is needed is a given set of information that can be found and delivered way faster using Redis. Whenever an event occurs in the game, for eg. "Game-over" event, then only the database.
### Tech Stack
- React-Native
- React-Native Game-Engine
- NodeJS
- Redis Database
- Google Cloud Compute Engine
This application utilizes event-driven architecture.
### Future Plans
I intend to add more features to the game in future releases. These will include two player gaming.
Add more of these events driven processes by adding more features to the game, like tools, skills etc.
Add and migrate the working of the Redis database by redesigning the currently existing structure with RedisJSON module.
### Try it out
1. Apk : [Link](https://drive.google.com/open?id=1SJFrtwDQsehiJN6T7Zpz9J8Bv7w7wx21)
2. Youtube : [Link](https://www.youtube.com/watch?v=5TTC36gBgY4&feature=youtu.be)
### Screenshots

