TheSoftwareHouse / react-starter-boilerplate

A highly scalable React SPA boilerplate focused on performance and best practices, written in TypeScript.
https://tsh.io/
MIT License
59 stars 20 forks source link

React Starter Boilerplate

A highly scalable and focused on performance and best practices boilerplate code for TypeScript based React SPA applications.

This project was bootstrapped with Vite and modified by TSH team.

Start your new React application in seconds!

GitHub stars GitHub watchers GitHub followers

Discord Version GitHub License

Features

Quick scaffolding

Generate React code snippets from the CLI by using Plop micro-generator framework.

TypeScript

The best way to write modern frontend applications. Code is easier to understand. By using TypeScript it is more difficult to write invalid code as was the case in dynamically typed languages.

Static code analysis

Focus on writing code, not formatting it! Code formatter and linter keeps the code clean which makes work and communication with other developers more effective!

How to bootstrap your React project

To start your new React project based on the react-starter-boilerplate you need to follow this steps:

  1. Clone this repository:
git clone https://github.com/TheSoftwareHouse/react-starter-boilerplate.git
  1. Change the name of project directory to the name of your project. Also don't forget to change the name of your application in package.json file.

  2. Restore git history of the project. To do that, run following commands:

    sudo rm -r .git
    git init
    git remote add origin <your empty project repository>
    git remote -v
  3. Replace this file with PROJECT_README.md and fill all the placeholders with data about your project:

    mv PROJECT_README.md README.md
  4. Add all files to git history and create initial commit:

    git add .
    git commit -m 'Initial commit'
    git push origin master
  5. Copy the .env.dist file to .env.local and populate the environment variables with the values used in the local environment

cp .env.dist .env.local

Now, your project is bootstrapped successfully! 🎉

You can install dependencies and start developing your React application 🚀

Scripts

npm run [command_name]

*See the section about deployment for more information.

Table of Contents

  1. Technology stack
  2. Application structure
  3. React Query abstraction
  4. Using plop commands
  5. E2E tests

How to Contribute

Anyone and everyone is welcome to contribute. Start by checking out the list of open issues.

However, if you decide to get involved, please take a moment to review the guidelines.

License

Copyright © 2021-present The Software House. This source code is licensed under the MIT license found in the LICENSE file.


Made with ♥ by The Software House (website, blog) and contributors.