https://github.com/pwnsoni/marvel_quiz
A gaming web-app, Used redis to implement the leaderboard, deployed on lambda.
https://github.com/pwnsoni/marvel_quiz
express ioredis javascript lamda nuxtjs redis server
Last synced: 4 months ago
JSON representation
A gaming web-app, Used redis to implement the leaderboard, deployed on lambda.
- Host: GitHub
- URL: https://github.com/pwnsoni/marvel_quiz
- Owner: pwnsoni
- Created: 2021-05-30T14:55:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-15T09:01:42.000Z (about 3 years ago)
- Last Synced: 2025-06-21T10:07:04.542Z (4 months ago)
- Topics: express, ioredis, javascript, lamda, nuxtjs, redis, server
- Language: Vue
- Homepage: https://test.iamonlambda.xyz/
- Size: 1.71 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# marvel_quiz
## Technology Stack
* Nuxt JS
* Express JS
* Redis (For leaderboard)
* Serverless (For deployment)
* AWS Lambda
* ioredis
## Technical Docs
* You can create or join a room.
* Five random questions from a predefined question set would be selected for a particular player, this is stored in a json file in server code itself.
* A redis key would be created when a player joins a room with score 0.
* Every time a user submits the answer, new score of that player would be added in the redis and leaderboard would alse be updated on that user's screen.
## Functional Docs
* Create / join a game with a username
* Make your friend join the same room with different username
* Every time a player submits an answer, leaderboard on that particular player's screen will update.
## Build Setup
```bash
# install dependencies
$ npm install# serve with hot reload at localhost:3000
$ npm run dev# build for production and launch server
$ npm run build
$ npm run start# generate static project
$ npm run generate
```For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).