This is a boilerplate to be used as a foundation for front-end projects, featuring Vite, TypeScript, ReactJS, and Styled-Components as main technologies. It includes custom configurations with Prettier and ESLint for code standardization and organization. Additionally, it provides examples of componentization, usage of ReactJS library hooks, custom hooks, OAuth authentication, data persistence using browser storage mechanisms, unit testing examples, among other features. This comprehensive kit will provide a solid base to efficiently start ReactJS projects with consistency.
# Creating your project using this boilerplate
$ npx degit jefferson1104/boilerplate-reactjs PROJECT_NAME
# Project directory
$ cd PROJECT_NAME
# Install dependencies
$ npm install
# Run in development mode http://localhost:5173/
$ npm run dev
npm run dev
: start app in development mode inhttp://localhost:5173
npm run build
: create the production build versionnpm run preview
: starts a simple server with the build production codenpm run lint
: runs ESLint to test all components and pagesnpm run test
: run Jest to test all components and pagesnpm run test:watch
: run Jest in watch modenpm run generate
: create the component structure in an automated way