This is a template repo for projects built with react
and typescript
on the basis of vite
.
This template also uses Protected Route plus Authentication and Public Route in ReactJS, and applies Redux and Redux-Saga for React Web App.
Libraries:
- React & Typescript
- Redux
- Redux Saga
Tooling: Vite
UI Kit: Semi Design
To get a local copy of the code, clone it using git:
git clone https://github.com/necrobits/react-boilerplate.git
cd react-boilerplate
Make it your own:
rm -rf .git && git init && npm init
git add .
git commit -m "Initial commit"
Install dependencies:
yarn install
Now, you can start a local web server by running:
npm start
And then open http://localhost:3000 to view it in the browser.
In this project, you can run the following scripts:
Script | Description |
---|---|
npm run dev | Runs the app in the development mode. |
npm run build | Builds the app for production to the build folder. |
npm run serve | Serves the production build from the build folder. |
npm run lint | Reformat and clean code |
The repository is built and maintained by Necrobits.
This project is licensed under the terms of the MIT license.