All Projects → bl0cknumber → reactplate

bl0cknumber / reactplate

Licence: MIT license
[unmaintained] 🚀 A Minimal Setup & Fast Boilerplate for React.js with Vite.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to reactplate

Ice
🚀 The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
Stars: ✭ 16,961 (+67744%)
Mutual labels:  react-router, vite
react-passage
Link and Redirect to routes safely in your react applications 🌄
Stars: ✭ 61 (+144%)
Mutual labels:  react-router
react-spa-template
This is a sample template for single page applications built using React + Router to work with webpack dev server
Stars: ✭ 19 (-24%)
Mutual labels:  react-router
material-ui-Link-within-MenuItem
Example for how to use `react-router/Link` within `material-ui/MenuItem`
Stars: ✭ 19 (-24%)
Mutual labels:  react-router
Client
TRPG即时IM通讯软件客户端,基于React 与 React Native + Redux技术
Stars: ✭ 118 (+372%)
Mutual labels:  react-router
typesafe-react-router
Utility functions to help facilitate type-safe routing with react-router
Stars: ✭ 90 (+260%)
Mutual labels:  react-router
elucidator-blog-starter
Opinionated Vue 3 + Vite + Typescript minimal blog starter ⚔
Stars: ✭ 28 (+12%)
Mutual labels:  vite
vite-plugin-webfont-dl
⚡ Webfont Download Vite Plugin - Make your Vite site load faster
Stars: ✭ 69 (+176%)
Mutual labels:  vite
react-ssr-starter
🔥 ⚛️ A React boilerplate for a universal web app with a highly scalable, offline-first foundation and our focus on performance and best practices.
Stars: ✭ 40 (+60%)
Mutual labels:  react-router
pwl
Password Lense: reveal character types in a password
Stars: ✭ 20 (-20%)
Mutual labels:  vite
svelte-typescript-setups
Examples and tests of different bundler setups for Svelte with Typescript and PostCSS (Tailwind)
Stars: ✭ 50 (+100%)
Mutual labels:  vite
react-authentication-in-depth
Example of User Authentication using React with React Router and AWS Amplify
Stars: ✭ 61 (+144%)
Mutual labels:  react-router
douban-movie-electron
This is electron app for douban movie
Stars: ✭ 19 (-24%)
Mutual labels:  react-router
sunrise
The rise of a new project with React, Redux-Saga and React-Router
Stars: ✭ 13 (-48%)
Mutual labels:  react-router
cra-flask
Unejected create-react-app ui, flask api with token authentication
Stars: ✭ 20 (-20%)
Mutual labels:  react-router
socialApp-MERN
Social Networking web app similar to Instagram.
Stars: ✭ 35 (+40%)
Mutual labels:  react-router
aria-vue
Testing tools for Vue components
Stars: ✭ 21 (-16%)
Mutual labels:  vite
fifa
React + Node.js + socket.io -- A turn-based multiplayer game-client based on FIFA
Stars: ✭ 26 (+4%)
Mutual labels:  react-router
react-express-mongodb
基于react全家桶+antd design+webpack2+node+express+mongodb开发的前后台博客系统
Stars: ✭ 26 (+4%)
Mutual labels:  react-router
io-dev
IO Dev is a portfolio website to showcase the work and projects I have created
Stars: ✭ 22 (-12%)
Mutual labels:  react-router

A Minimal Setup & Fast Boilerplate for React.js with Vite

Features

🚀 Dynamic Pages Routing with react-router-dom from React.js
🚀 Fast development with Vite
🚀 SSR/SSG support with Vite
🚀 PWA support with Vite


Installation

create-reactplate-app

npx create-reactplate-app blog-starter

cd blog-starter

npm install

# run server (development mode)
npm run dev
# run server (production mode)
npm run serve
# run debugger
npm run debug

# build the client side & the server side project
npm run build

# build the client side project
npm run build:client

# build the server side project
npm run build:server

# static site generate
npm run generate

# unit test
npm run test

Development

For further development and contributions, please follow the installation instructions below.

git clone https://github.com/fauzan121002/reactplate.git

# Reactplate CRA cli scope
cd reactplate

#----------------------------------

# Reactplate app scope
cd reactplate/examples

npm install

# run server (development mode)
npm run dev
# run server (production mode)
npm run serve
# run debugger
npm run debug

# build the client side & the server side project
npm run build

# build the client side project
npm run build:client

# build the server side project
npm run build:server

# static site generate
npm run generate

# unit test
npm run test

Built-in Configuration

Import Aliases

  • @ equals to _ROOT_/src
  • # equals to _ROOT_/src/components
  • % equals to _ROOT_/src/assets

ESBuild

ESBuild already injects import React from 'react'; for any .jsx files so you don't need to import it again.

Dynamic Pages Routing

Reactplate Dynamic Pages Routing folder structure works like Next.js.

pages
│   Home.jsx
│   About.jsx
│
└───Rank
│   │   [rank].jsx
│   └───subfolder1
│       │   [others].jsx
│       │   ...

Using the params example

// Rank/[rank].jsx
import { useParams } from "react-router-dom";

export default function rank() {
  const { rank } = useParams();
  return <div>Reactplate will be number {rank}</div>;
}

Note : Index page will refer to Home.jsx

URL Convertion

Reactplate will convert any jsx files filename with PascalCase or camelCase to kebab-case.

Example :

pages
│   Home.jsx
│   AboutMe.jsx
│
└───myRank
│   │   [rank].jsx
│   └───subfolder1
│       │   [others].jsx
│       │   ...

will be converted to :

/home
/about-me
/my-rank/:rank
/my-rank/:rank/subfolder1/:others
...

License

Reactplate using the MIT License

Credits

Credits to React.js and Vite teams for their awesome open source and resources!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].