Giter VIP home page Giter VIP logo

rnquiz's Introduction

RNQuiz

A multi-player real-time quiz app created with Node.js and React Native.

You can read the tutorial at https://pusher.com/tutorials/live-multiplayer-quiz-react-native.

Prerequisites

Getting Started

  1. Clone the repo:
git clone https://github.com/anchetaWern/RNQuiz.git
cd RNQuiz
  1. Install the app dependencies:
yarn
  1. Eject the project (re-creates the ios and android folders):
react-native eject
  1. Link the packages:
react-native link react-native-gesture-handler
  1. Update .env file with your Pusher app credentials.

  2. Set up the server:

cd server
yarn
  1. Update the server/.env file with your Pusher app credentials.

  2. Run the server:

yarn start
  1. If you're starting out with an empty db.sqlite file, access http://localhost:5000/create-db then http://localhost:5000/create-quiz on your browser. Otherwise, skip this step.

  2. Run ngrok:

./ngrok http 5000
  1. Update the src/screens/Login.js and src/screens/Quiz.js file with your ngrok https URL.

  2. Run the app:

react-native run-android
react-native run-ios
  1. Log in to the app on two separate devices (or emulator).

  2. Access http://localhost:5000/questions on your browser to start publishing questions.

Built With

Donation

If this project helped you reduce time to develop, please consider buying me a cup of coffee :)

Buy Me A Coffee

rnquiz's People

Contributors

anchetawern 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.