GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CodeBaseFrontendReactjs/README.md at master · oyedele-git/CodeBaseFrontendReactjs

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
45 lines (43 loc) · 1.35 KB
/

README.md

Copy path

File metadata and controls

45 lines (43 loc) · 1.35 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Code Base Front-end React, Webpack, Babel, Eslint using with Graphql

Setting:

  1. Connect to Backend
    • Setting in 2 file .env.development.local and .env.production.local
  2. Setting router
    • Setting in src/configs/routers/index.js
  3. Setting Provider
    • Setting in src/utils/provider/index.js

Usage:

  1. Running with command:
    • Start

    npm run start

    • Build

    npm run build

  2. Catching error from backend
import { DecodeError } from '@utils'

try {
  ...
} catch (e => {
  console.log(DecodeError(e))
})
  1. Using alias
    • Đối với các thư mục cấp 0 từ src, vui lòng tạo file index.js để export các component ở trong thư mục cấp 0 đó.
    • Sau khi export các bạn có thể import theo cách sau.
import { ... } from '@components'
import { ... } from '@configs'
import { ... } from '@pages'
import { ... } from '@tools'
import { ... } from '@utils'
  1. Support Dynamic Import
import('@pages/login').then(({ default: Component }) => {
  return <Component />
})
  1. Support i18next
    • Edit file index in folder config/i18n to translate
  2. Support eslint
    • delete src/ in file .eslintignore and add script "prestart": "npm run eslint-fix" into file package.json to use
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.