GithubHelp home page GithubHelp logo

mdalimujtaba / rct-201-e1-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riteshf/rct-201-e1-boilerplate

0.0 0.0 0.0 367 KB

JavaScript 85.74% TypeScript 11.38% CSS 1.01% HTML 1.88%

rct-201-e1-boilerplate's Introduction

Task

  • Create a Similar page using the Provided Boilerplate

Getting Started

  1. Fork this repository https://github.com/riteshf/rct-201-e1-boilerplate
  2. Clone the forked app from your github account..
  3. navigate to the folder cd rct-201-e1-boilerplate
  4. npm install
  5. npm start

Understanding Component Structure

  • App

    • Clock

    • List1

    • List2

    • useClock

           return {
             hours: /** Current time in hours */,
             minutes: /** Current time in minutes */,
             seconds: /** Current time in seconds */,
            };
    • useNumberList

        return {
           list: /** List of numbers */,
           appendStart: /** Function to append element at start */,
           appendEnd: /** Function to append element at end of list */,
           popStart: /** Function to pop element at start of list */,
           popEnd: /** Function to pop element at the end of list */,
           clear: /** Function to clear the list and set it to empty */,
           reset: /** Function to reset list values to the original values */
         };

Note - Make sure you use only the given components and dont create new files and folders as chaging component name, structures might result in giving you zero marks

Mandatory:

  1. Use of Typescript is mandatory, and mentioning types is also mandatory.
  2. Use go given custom hooks in mandatory.

Features to build

  1. A Live Clock showing Current Time in 24Hrs format as showm in image.

    • Should use useClock hook.
  2. List1:

    • Should have initalValues and label as props.
    • Show use useNumberList hook to get following functionality:
      • list: elements that are present in the list.
      • appendStart: to append element at start of the list.
      • popEnd: to pop elements at the end of the list.
      • clear: to set the list to empty.
      • reset: to reset the value of list to initalValues.
  3. List2:

    • Should have initalValues and label as props.
    • Show use useNumberList hook to get following functionality:
      • list: elements that are present in the list.
      • appendEnd: to append element at end of the list.
      • popStart: to pop elements at the start of the list.
      • clear: to set the list to empty.
      • reset: to reset the value of list to initalValues.

Note - Make sure you implelement features one by one and deploy the app correctly

General Instructions (IMPORTANT)

  1. Typescript is mandatory.
  2. Use of Custom Hooks is mandatory
  3. Do not use Global CSS, instead use <componentName>.module.css convention for Css in that file.
  4. Do Not Remove data-testid="xxxx" from anywhere, this are used by testing tools to test your code, removal of this will lead to low score.
  5. Make sure you use only the given components and dont create new files and folders as chaging component name, structures might result in giving you zero marks
  6. Make sure you use only the given data and dont create new data, as chaging data might result in giving you zero marks

Just for fun, things you can try (OPTIONAL)

  • Try running npm run test
    • might help you to avoid obvious mistakes.

rct-201-e1-boilerplate's People

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.