Git Product home page Git Product logo

bsbtassignment12's Introduction

Haodan Jing Coding Assignment 12 - Component Library

This project is a React application that demonstrates the usage of various reusable UI components. The components included are Button, Card, Dropdown, HeroImage, Img, Table, and RadioButton. Each component is tested to ensure visibility and correct behavior when in a disabled state.

Table of Contents

Installation

To get started with this project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/hjing2/BSBTassignment12.git
    cd your-repo-name
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

The application will be available at http://localhost:8083.

Usage

The main application file is App.tsx, which includes examples of each component. You can modify App.tsx to add more examples or use the components in different ways.

Components

Button

A simple button component.

Card

A card component with a title and content.

Dropdown

A dropdown component with a list of options.

HeroImage

A hero image component that displays a large image.

Img

An image component that displays a regular image.

Table

A table component that displays headers and rows of data.

RadioButton

A radio button component that allows for selecting an option.

Testing

To run tests for the components, use the following command:

npm test

Storybook

To view the components in a visual interface, run the following command:

npm run storybook

The application will be available at http://localhost:6006.

Docker

To build a Docker image for the application, use the following command:

docker build -t haodan_jing_coding_assignment12 .

Run the Docker image using the following command:

docker run -p 8083:6006 -d --name haodan_jing_coding_assignment12 haodan_jing_coding_assignment12

The application will be available at http://localhost:8083.

bsbtassignment12's People

Contributors

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