Skip to content

chalstead16/trivia-night

Repository files navigation

Trivia Night

Overview

TriviaNight

Want to host a trivia night but don't know where to start? Trivia Night is here! With Trivia Night a user will land on the page and see a series of trivia categories. From there the user will see a list of trivia questions for that category. They can then add and remove questions to their game page to create their own customized list of trivia questions!

Endpoints

Trivia Night is a React.js application, consuming The Trivia API to source trivia questions for hosting a game night!

Endpoints utilized by Trivia Night for the questions data included queries for category, difficulty and amount of questions to return.

Each time the user selects a category from the home view, the button sends the category value to the fetch call to request the interpolated category query.

Example Endpoint

https://the-trivia-api.com/api/questions?categories=food_and_drink&limit=20

Project Management Tools

Learning Goals

  • Clean and consistent React Architecture
  • Implementation of Typescript
  • Create a multi-page UX using Router
  • User flows tested with cypress
  • Project spec can be found here

Getting Started

  1. Clone the repo down to your machine
  2. Open the root directory and run npm i to install dependencies
  3. Run npm start in the terminal to open the webpage
  4. Open a second terminal tab and run npm run cypress (while localhost:3000 is still running) to access the cypress testing for this app

Deployed Link

Trivia Night

Features

  • User can save questions to their game
  • User can remove questions from their game
  • Fully tested with Cypress

Technologies Used

  • React.js
  • Typescript
  • React Router
  • CSS
  • HTML
  • Cypress
  • RESTful APIs
  • Figma
  • GitHub Projects & Issues

Goals

  • Clean and consistent React Architecture
  • Implementation of Typescript
  • Create a multi-page UX using Router
  • User flows tested with cypress
  • Project spec can be found here

Future Additions

  • Incorporate Sass
  • A user can add their own questions
  • Sort questions by difficulty
  • Play a trivia game in app

Contributors

Geena Jackson: GitHub Sam Mistele: GitHub Casey Halstead: GitHub Brenda Sotelo: Github
Geena Jackson GitHub Sam Mistele GitHub Casey Halstead GitHub Brenda Sotelo GitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •