Front-end for speedchecker app.
Build with using only functional components. For state management I used useState()
from React Hooks API. This allows functional components to use state.
<Main />
component calls backend API and saves JSON response in a state. This response contains all needed data for all pages.
This component also has dummy data mode. This will use dummy data instead of calling the API. Intended to save time during development.
const debugMode = true
<Results />
component contains all logic for displaying test results.
It has owner tab and developer tab.
<RowDev />
and <RowOwner />
are formating and rendering data.
- Har viewer (network watterfall)
- HistoryChart Page
- Loading
Built with create-react-app.
Clone the repo.
git clone git@gitlab.com:ecom_experts.io/speedchecker-frontend.git
Use the yarn to install dependencies.
yarn install
Run locally with hot reloading. (Runs start script from react-scripts.)
yarn dev
Run build script from react-scripts
yarn build
Start express server. Serve ./build folder.
yarn start
- React - The front-end framework
- Create React App - Set up a modern web app by running one command.
- MongoDB - Database
- Express - Fast, unopinionated, minimalist web framework for Node.js