Ultimate template for a React+TS single page application...
- React → Frontend Framework
- TypeScript → Language
- Vite → Frontend Build Tool
- Yarn → Package Manager
- Install NodeJS, NPM, and Yarn
- Create React/TypeScript template using Vite & Yarn →
yarn create vite <project_name> --template react-ts
- Install needed packages →
yarn install
- Install needed packages →
- Setup Git in project →
git init
- Perform initial commit
- (Recommended) Publish to GitHub as public/private repo
- Setup ESLint and Prettier
- Download repository:
- Clone method
- Or download as
.zip
and unzip the contents
- (Optional) If cloned, change remote as needed. If downloaded as zip, initialize git repo and publish to remote repo as needed.
- Install packages using
yarn
oryarn install
- (Optional) Change "name" field in package.json from "vite-react-template" to desired project name