Ultimate template for a React+TS single page application.
- Clone repository -
git clone https://github.com/BrylleGomez/ultimate-react-app.git - Rename folder name - for MacOS/Linux:
mv ultimate-react-app-template <your-desired-folder-name> - Navigate to project folder and delete .git folder and .gitignore file - for MacOS/Linux:
rm -rf .gitandrm .gitignore - Initialize git in the repository, add .gitignore with the below contents, add desired remote repository as remote, and push initial commit to new remote.
node_modules
.DS_Store
dist
dist-ssr
*.local
- 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