An open API service indexing awesome lists of open source software.

https://github.com/jonikanerva/react_template

React SPA + TypeScript Template
https://github.com/jonikanerva/react_template

eslint parcel-bundler prettier react template typescript

Last synced: 2 months ago
JSON representation

React SPA + TypeScript Template

Awesome Lists containing this project

README

          

# React SPA Template

Template for a client rendered [React][react] app written in [TypeScript][typescript]. It uses [Vite][vite] for building, [Prettier][prettier] for code formatting, [ESLint][eslint] for static analysis, [pnpm][pnpm] for package manager, and [nvm][nvm] for managing the Node version.

## Setup

Install and set the correct Node version with `nvm install && nvm use`.

Install dependencies with `pnpm install`.

Run static analysis and linters with `pnpm lint`.

## Running

Build application with `pnpm build`.

Start application in dev/watch mode with `pnpm dev`.

Preview production build with `pnpm preview`.

[nvm]: https://github.com/creationix/nvm/
[prettier]: https://prettier.io
[react]: https://react.dev
[eslint]: https://eslint.org
[typescript]: https://www.typescriptlang.org
[vite]: https://vite.dev
[pnpm]: https://pnpm.io