pat-frontend-template
pat-frontend-template copied to clipboard
React frontend template based on Vite for Nordcloud's Platform & Tools
Vite template for frontend projects
This is a basic setup for our frontend projects, it includes Migration guide from deprecated Create React App setup.
Components
- Frontend application based on Vite
- Code is written in Typescript
- Prettier formatter
- Linting implemented with Stylelint and ESLint
- Testing setup consists of Vitest and Testing Library
- Support for styling with Styled Components
- GNUI component library
- Additional checks that improve codebase maintenance (circular dependencies, unused exports)
- Git hooks support
- Alias import support
Setup
1. Make sure you use a proper Node.js and npm versions
Check engines field in package.json to see currently supported versions
Automatic setup for NVM users
nvm install
nvm use
2. Install packages
npm install
3. Add env file
Create .env file
REACT_APP_CLIENT_TOKEN=
REACT_APP_ENV=development
SERVER_OPEN_BROWSER=false