Git Product home page Git Product logo

pretty-trivia-app's Introduction

Awesome Trivia Game

Trivia app game, made with love with React, Nextjs, typescript and styled component

First, download the dependencies ๐Ÿฑโ€๐Ÿ’ป

npm install

and then

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

What I do?

Problem

React Web Code Challenge - Trivia App

The challenge was to create a 10 question, true or false, trivia app with React Web.

The application code will be reviewed and scored on these key areas with many subset areas for each:

  • Functionality
  • Code Format
  • Project Structure
  • Scalability
  • Maintainability
  • Use of industry best practices

API: https://opentdb.com/api.php?amount=10&difficulty=hard&type=boolean

Solution

The solution was very simple I use React js with Nextjs for the client. I also use styled component that way the app only render the styles that only need it. I consider use Typescript too for the entire app that way have better control with the dinamic typed that use javascript

  • Client
    • Reactjs ๐Ÿฑโ€๐Ÿ‘“
    • Nextjs ๐Ÿฑโ€๐Ÿ
    • Context Api ๐Ÿฑโ€๐Ÿ‘ค
    • Typescript ๐Ÿ› 
    • Styled component ๐Ÿ’…

For testing

I use Jest with React Testing Library that goes really well with Nextjs, to run it just type:

npm run test

Deploy ๐Ÿ˜Ž๐Ÿš€

You can see the app runing here: https://awesome-trivia-game.vercel.app/

Thank you for having come this far!. Enjoy the app ๐Ÿ˜.

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.