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 — GitHub - oyedele-git/CodeBaseFrontendReactjs: An open source code base for front-end develop

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
public
public
 
 
src
src
 
 
.babelrc
.babelrc
 
 
.env.development.local.example
.env.development.local.example
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
README.md
README.md
 
 
jsconfig.json
jsconfig.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

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

About

An open source code base for front-end develop

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — 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.