The README generated by Create React App has been moved to CRA-README
SMSGlobal Coding Assessment is help you to send messages using SMSGlobal REST API. It is powered by Create React App with TypeScript.
Click ๐ http://bit.ly/smsglobal-assessment
- React(Hooks) + Redux(Saga) + React Router + Axios + TypeScript
- UI Library: Material-UI
- Unit Test: Jest
- Only do the unit test cases with redux store to keep the data update under control
$ git clone https://github.com/luckyleonard/smsglobal-assessment.git
$ cd smsglobal-assessment
# Install frontend dependencies
$ yarn
# Start whole project
$ yarn start
# run unit test with Jest
$ yarn run test
# build website artifacts in ./build
$ yarn run build
- Powered by: Netlify
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