Skip to content

wwh58578802/react-test

Repository files navigation

Suported Environments

The repo supports 2 different environments:

Structure

assets

To store fonts and icons

components

To store common componets and logic components

  • customModal: common modal component
  • header: header component
  • map: the left of main page of right
  • menu: menu component for tab switch
  • minners: to store all logic components of main page
  • svgIcon: common svg icon component

http

Definie the request interceptor, response interceptor and request methods(get, post, delete, put)

pages

Pages component

router

To store router

socket

Define Websocket serve, used socket.io client, 'https://socket.io/'

type

Define interface

utils

Public method class

Launch in dev env

To launch the project in development mode, use yarn or npm to install node modules, run script:

npm install
npm run start

Launch in prod env

To launch the project in prodcution mode, use yarn or npm to install, run script:

npm install
npm run start:prod

Build

Build code for production mode, run script:

npm run build:prod: 

Running eslint

To run eslint locally and fix automatically all minor issues:

npm run lint:fix

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published