Giter Site home page Giter Site logo

luckyleonard / smsglobal-assessment Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 323 KB

SMSGlobal React assessment website created with react and typescript powered by CRA. View online :point_down:

Home Page: http://bit.ly/smsglobal-assessment

HTML 3.56% TypeScript 96.33% CSS 0.11%

smsglobal-assessment's Introduction

SMSGlobal Coding Assessment

The README generated by Create React App has been moved to CRA-README

Overview

SMSGlobal Coding Assessment is help you to send messages using SMSGlobal REST API. It is powered by Create React App with TypeScript.

Online demo

Click ๐Ÿ‘‰ http://bit.ly/smsglobal-assessment

Features

  • React(Hooks) + Redux(Saga) + React Router + Axios + TypeScript
  • UI Library: Material-UI
  • Unit Test: Jest

Issues

  • Only do the unit test cases with redux store to keep the data update under control

Getting Started

Prerequisties

Installation

$ git clone https://github.com/luckyleonard/smsglobal-assessment.git
$ cd smsglobal-assessment

# Install frontend dependencies
$ yarn

# Start whole project
$ yarn start

Test

Unit Test

# run unit test with Jest
$ yarn run test

Deploy

Build

# build website artifacts in ./build
$ yarn run build

Online Deploy

Project Structure

Only src/ will be elaborated below.

# some folders/files had been omitted
src/
โ”œโ”€โ”€ components/ # They are shared Components
โ”œโ”€โ”€ helpers/ # Helper functions
โ”œโ”€โ”€ pages/ # All page containers
โ”‚   โ”œโ”€โ”€ Home/
โ”‚   โ”œโ”€โ”€ Report/
โ”‚   โ”‚   โ”œโ”€โ”€ components/ # Only used in this container
โ”‚   โ”‚   โ””โ”€โ”€ index.ts
โ”‚   โ””โ”€โ”€ Router.tsx # Routes config
โ”œโ”€โ”€ redux/ # https://github.com/rematch/rematch
โ”‚   โ”œโ”€โ”€ actions/ # Action creator and Action types
โ”‚   โ”œโ”€โ”€ reducers/
โ”‚   โ”œโ”€โ”€ saga/ # To take care side effects
โ”‚   โ”œโ”€โ”€ selectors/ # To selector state from redux store
โ”‚   โ””โ”€โ”€ store.ts
โ”œโ”€โ”€ types/ # Centralized redux and fetch response types
โ”œโ”€โ”€ App.tsx
โ””โ”€โ”€ index.tsx

Author

smsglobal-assessment's People

Contributors

luckyleonard avatar

Stargazers

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