GithubHelp home page GithubHelp logo

react-vite's Introduction

Welcome to POS2

yarn install
yarn start

Using

daisyui

windicss

axios

dayjs

Formik

i18next

lodash

i18next

react-query

react-router version 6 vs vite-plugin-page to configure dynamic route in pages folder

recoil

fullcalendar

Coding Convention

  1. Please keep the folder structure..
  2. If React Components, the directory name should start with a capital letter (like CamelCase), and if other components, with a lowercase letter (camelCase).
  3. Use only "~/*" for path alias. (I can't manage it.)
  4. Dont import useTranslation or import React from 'react' because it will automation import.
  5. Please use <></> instead of React.Fragment.
  6. Must have file index.jsx in any Folder UI Component Folder. It's will represent for export UI Component Folder.
  7. Should using commit message convention for any commit. Follow the article: https://dev.to/i5han3/git-commit-message-convention-that-you-can-follow-1709

Directories

├── public
|   └── locales
└── src
    ├── assets
    │   ├── images
    |   ├── css
    |   └── fonts
    ├── components
    ├── contexts
    ├── hooks
    ├── modules
    │   ├── plugins
    |   └── utils
    ├── pages
    ├── services
    ├── stores
    └── styles

public/locales - Public folder for language

stc/assets - Folder that stores all assets

src/components - Define common UI, or Common Wrapper

src/contexts - Define context common

src/hooks - Define custom hook.

src/module - Folder has plugins of setting library, utils, constants, or define function common.

src/pages - Define common Page, Container Page

src/services - Folder define API services

src/stores - Define Recoil store. Dispatch and Atom of recoil

src/styles - Common styles, reset styles or styles of library

react-vite's People

Contributors

dangdn21 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.