Giter Site home page Giter Site logo

quizgame's Introduction

QuizGame Release Contributors

This is a node.js QuizGame application powered by SocketIO (4.1.2) and Express (4.17.1).

Casus

I started this project to get familiar with socket.io. Before this project I never used sockets and wanted to enlarge my scripting skills and get experience with socket.io. I chose to make a QuizGame to start easy and make something I enjoy to make and could learn from.

Libraries

This project uses several npm libraries:

Installation

In order to host the QuizGame and use it you need to execute several commands.

1. Install required npm-packages

To make the github download as small as possible you need to download the npm packages needed by the node.js application locally. The required packages are listed in the package.json file.

Run the command npm install package.json to install the required packages.

2. Docker container setup

After you installed the packages locally you can setup a docker container with the docker-compose file that is listed above.

You can run the docker container by executing the following command in the directory where the docker-compose.yml file is located: docker-compose up

NOTE: Remember to change the volume locations. And if needed change the ports but don't forget to also change the port in the index.js file.

3. Access the QuizGame

When the docker container is active, you can access the QuizGame by visiting http://${ip}:1011/. When the page is loaded you can start playing the QuizGame alone or with your friends.

QuizGame

There are several subjects you can choose from like geography, history, language, film and culture. You can also add your own questions to the quizdata.js file.

NOTE: Don't forget to restart the docker container after changing the quizdata. Otherwise the new questions won't be loaded into the game.

Acknowledgements

I started this project after getting inspired by two youtube videos. The first video I watched was about a snake game that used Socket IO. After watching that video I wanted to work on a project that involved sockets. The second video I got inspired with a idea on how i could use sockets within a project.

Multiplayer Snake Game | JavaScript & SocketIO // by Traversy Media

10 JavaScript Projects in 10 Hours - Coding Challenge ๐Ÿ”ฅ // by Florin Pop

Contact

Created by @nbakkers - Feel free to contact me!

quizgame's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.