Git Product home page Git Product logo

checkmate-interview-test's Introduction

Getting Started

First, run the development server to see the interface:

yarn install
yarn dev

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

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

Tasks

Detailed instructions for each task are in the comments of the corresponding file.

Task 0: Initialize Firebase

pages/index.tsx

  • Create a Firebase project on Firebase Console
  • Enable Google Sign in
  • Add Firebase to the project
  • Initialize Firebase

Documentation: https://firebase.google.com/docs/auth/web/start

Task 1: Implement Google Sign in with Firebase

pages/index.tsx

  • Implement Google Sign in with Google button
  • Redirect to the Signed In page to show random programming jokes

Documentation: https://firebase.google.com/docs/auth/web/google-signin

Task 2: Fetch programming jokes from the API

pages/signed-in.tsx

  • Fetch programming jokes from the API using getServerSideProps

Learn more about Nextjs Data Fetching: https://nextjs.org/docs/basic-features/data-fetching

  • Pass the joke to the page on the client side

API URL: https://official-joke-api.appspot.com/jokes/programming/random

Task 3: Display the programming joke

pages/signed-in.tsx

  • Display the programming joke in your own way :)

(Optional) Task 4: Find a critical design flaw in the website

No need to send me the problem and fix, just let me know what you find in the interview

  • My findings:
    • There is latency after redirect result returned from Google Sign in
    • The user has signed in but the application are not signed in yet
    • Possible solution: Add spinning widgets to indicate the application is processing the result

Note

  • Feel free to explore the codebase and make changes to the UI
  • You can use any UI library you want
  • It is completely fine if you cannot complete all the tasks as one of the objectives in this test is to let you know the usual developer experience in CheckMate
  • If you have any questions, please feel free to ask me :) Just drop me an email

checkmate-interview-test's People

Contributors

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