Giter VIP home page Giter VIP logo

turbo-spa-react's Introduction

Turbo React App

A project that provides libraries and structures available for react.

Features

  • Auto generate component by hygen.
  • Auto generate env file by config turbo.json.
  • Auto generate assets (icons,images, fonts).
  • Auto generate page includes (container, component, service, loader, route, model, services).
  • Extend generate page and auto create CRUD api and view sample.
  • Config eslint + prettier.
  • Theme UI mantine.
  • Config scss module.
  • Commitlint for commit git.
  • Alova for api.
  • Config i18n multiple language.
  • Storybook generate by component.
  • And more, we will update...

Run Locally

Clone the project

  git clone https://github.com/truongnat/turbo-spa-react.git

Go to the project directory

  cd turbo-spa-react

Install dependencies

  yarn

Modify .env.template file and run

  yarn config-env

Modify assets (if any) file and run

  yarn generate-assets

Generate new component

  yarn new-component <name>

Generate new page

  yarn new-page <name>

Generate new page with crud

  yarn crud <name>

Start dev

  yarn dev

Start storybook

  yarn storybook

Build

Build dist

  yarn build

You can config multiple build for each env.

Build storybook

  yarn build-storybook

Structure project

.
├── README.md
├── _templates
│   ├── crud
│   │   └── new
│   ├── component
│   │   └── new
│   ├── init
│   │   └── repo
│   └── page
│       └── new
├── commitlint.config.cjs
├── dev-dist
├── dist
├── index.html
├── package.json
├── public
│   ├── android-chrome-192x192.png
│   ├── android-chrome-512x512.png
│   └── vite.svg
├── scripts
│   ├── configEnv.js
│   ├── generateAssets.js
│   └── utils.js
├── src
│   ├── @types
│   │   ├── env.d.ts
│   │   ├── i18next.d.ts
│   │   ├── style.d.ts
│   │   ├── swaggerSchema.d.ts
│   │   └── vite-env.d.ts
│   ├── app
│   │   ├── App.tsx
│   │   ├── AppProviders.tsx
│   │   ├── index.ts
│   │   └── router
│   ├── assets
│   │   ├── fonts
│   │   ├── icons
│   │   ├── images
│   │   ├── index.ts
│   │   ├── lottie
│   │   └── styles
│   ├── features
│   │   ├── discussions
│   │   ├── employee-manager
│   │   ├── employees
│   │   ├── home-page
│   │   ├── network
│   │   ├── profile
│   │   ├── profile-page
│   │   ├── shop-manager
│   │   ├── sign-in
│   │   ├── tasks-page
│   │   └── templates
│   ├── main.tsx
│   ├── shared
│   │   ├── components
│   │   ├── config
│   │   ├── error-boundary
│   │   ├── hooks
│   │   ├── layouts
│   │   ├── mock
│   │   ├── providers
│   │   ├── services
│   │   ├── store
│   │   ├── theme
│   │   ├── translations
│   │   └── utils
│   └── stories
│       ├── Introduction.mdx
│       └── assets
├── storybook-static
├── tsconfig.json
├── tsconfig.node.json
├── turbo.json
├── vite.config.ts
└── yarn.lock

Support

For support, email [email protected] or message Telegram.

Authors

License

MIT

turbo-spa-react's People

Contributors

truongnat avatar

Stargazers

 avatar  avatar

Watchers

 avatar

turbo-spa-react's Issues

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.