A React SPA developed with Typescript, with all the cool things you need.
To scaffold this project I used Vite.
You can check out a production build of the template in here, in case you want to test it before using it.
First of all, make a copy of this project by clicking on "Use this template".
Now that you have your own repository, clone it and install its dependencies:
yarn install # npm install
If your app will make use of an external API, create a .env file:
cp .env.example .env.local
and add its base url.
Finally, run your app:
yarn dev # npm run dev
and visit http://localhost:3000.
This template comes with different tools that you will definetly love:
- Chakra UI to be able to use some awesome predesigned components and an incredible design system.
- Cypress to develop end to end tests.
- Eslint + Prettier to check for syntax errors and enforce a common code style.
- React Router to navigate through different components.
- Redux + Redux Toolkit for state management.
- Redux persist to persist state managed by redux.
- RTK Query to make API requests (I know this is included with Redux Toolkit, but it's such and amazing tool, that I had to give it its own mention).
To facilitate the deploying process, you can use Netlify. For this a _redirects file has already been added to the public directory.
If you use this tool, not only every commit to the master branch will automatically be deployed, but also a deploy preview will be created with every pull request that you create.
This project is configured with GitHub Actions so that each pull request is checked for eslint offenses and to run the tests.