TRIVIA!

Netlify Status

Real time Trivia app using Express + React + Socket.io + Yarn workspaces + MongoDB

✨ Features

  • Realtime with Socket.IO
  • Ligthing fast React UI
  • Authentication with Auth0
  • Pretty fun!

🚀 Yarn workspaces

Yarn workspaces is an awesome feature, it's easy to keep everything together.

Install NPM packages

# Install packages for React
yarn workspace client add package-name
# Install packages for Express Backend
yarn workspace server add package-name

🏃‍♀️ How to run

Run the API server and React server with a single command

# With yarn
yarn start
# With npm
npm run start

Running server in production:

Install PM2

npm install pm2 -g

Start server daemon using included config file

pm2 start ecosystem.config.js

📸 Screenshots

Trivia screenshot 1 Trivia screenshot 2 Trivia screenshot 3 Trivia screenshot 4 Trivia screenshot 5 Trivia screenshot 7 Trivia screenshot 7 Trivia screenshot 8