GithubHelp home page GithubHelp logo

rafaelclopes / quivia-webapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pranabs1ngh/quivia-webapp

0.0 1.0 0.0 3.24 MB

Quivia: Play trivia games from over 100,000 questions

Home Page: https://quivia-webapp.herokuapp.com/

JavaScript 89.87% CSS 9.44% HTML 0.69%

quivia-webapp's Introduction

Quivia : Play quiz from over 100,000 question

URL: https://quivia-webapp.herokuapp.com/

Its a basic practice project, made while learning MERN stack.

  • An user can sign up / sign in using local authentication or via google or facebook OAuth
  • Clicking on a game matches two idle players if present for the same game, else it sends a bot to play with

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have nodejs and npm installed to run this app from your pc.

Installing the required modules

Delete the 'node_modules' folder if present, else continue. Then, install the npm modules by typing the following command:

npm install

Do the same inside the client (React) folder, as it runs separate from server side.

Create a '.env' file in the root folder and store the following data:

COOKIE_SECRET = *************

MONGO_URI = *****************

GOOGLE_CLIENT_ID = **********

GOOGLE_CLIENT_SECRET = ******

FACEBOOK_APP_ID = ***********

FACEBOOK_APP_SECRET = *******

Get google/facebook client id and secret by creating a new app from their developers' section

Now Change the socket connection url inside '/client/src/components/Gameplay.js' (line 19) as follows:

this.socket = io.connect(devURI)

Now uncomment line 18

Running the app

To run the server, type the command:

npm run dev

To run the React server, change directory to client and then, type the command:

npm run start

You can edit the source files, which are present in the src folder. You can live test them on the React webpack server. React static build files will automatically get created on deployment.

Built With

  • MongoDB
  • Express
  • React
  • NodeJs
  • Socket.io

Author

  • Pranab K Singh

License

This project is licensed under the MIT License - see the LICENSE.md file for details

quivia-webapp's People

Contributors

pranabs1ngh avatar

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.