Skip to content

marslan2037/herokutest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speedchecker (Front-end)

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.

This version lacks:

  • Har viewer (network watterfall)
  • HistoryChart Page
  • Loading

Built with create-react-app.

Installation

Clone the repo.

git clone git@gitlab.com:ecom_experts.io/speedchecker-frontend.git

Use the yarn to install dependencies.

yarn install

Dev mode

Run locally with hot reloading. (Runs start script from react-scripts.)

yarn dev

Production

Run build script from react-scripts

yarn build

Start express server. Serve ./build folder.

yarn start

Built With

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages