Internal React SPA Starter
Vite Starter template for creating a Modern React Single Page App
Description
This is a Vite Starter template to get working on internal or prototype Singe Page Applications using React and Typescript.
Components
- Vite - For Bundling and running the Dev Server
- React - Frontend UI Library/Runtime
- React Router - ClientSide Routing
- ESLint - Code Linter
- Prettier - Code Style Formatter
- Cypress - E2E and Component Testing
- Mantine - React Component Library
- ReactQuery - Data fetching Management
Getting Started
Prerequisites
node
: >=16.16.0npm
,yarn
orpnpm
for running/installing scripts
Installation
Use degit to clone to your machine with an empty git history:
npx degit javaidh/internal-spa-starter#main my-app
Then, install dependencies:
npm install
Development
Most of the setup to run things is done for you. Just make sure you setup prettier
in your IDE to maintain code consistency!
Run Local Development Server
To stat developing locally and view your changes, simply run the command:
npm start
Run Tests
To start component tests using cypress simply run the command:
npm run tests