https://github.com/nyxb/vite-template-react
A Vite + React + TS template
https://github.com/nyxb/vite-template-react
react template tsx vite vite-template-react vitest
Last synced: 2 months ago
JSON representation
A Vite + React + TS template
- Host: GitHub
- URL: https://github.com/nyxb/vite-template-react
- Owner: nyxb
- License: mit
- Created: 2023-11-18T20:18:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-18T23:50:05.000Z (over 2 years ago)
- Last Synced: 2025-09-01T01:44:03.815Z (10 months ago)
- Topics: react, template, tsx, vite, vite-template-react, vitest
- Language: TypeScript
- Homepage: https://nyxb.nexus
- Size: 484 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Vite Template React
A Vite + React starter template.

## Development
To get a local copy of the code, use nyxbi cli:
```
npx nyxbi init -t vite-template-react my-app
```
and follow the instructions. after that, you can run:
```sh
bun dev
```
And then open http://localhost:3000 to view it in the browser.
#### Available Scripts
In this project, you can run the following scripts:
| Script | Description |
| ------------- | ------------------------------------------------------- |
| bun start | Runs the app in the development mode. |
| bun test | Launches the test runner in the interactive watch mode. |
| bun run build | Builds the app for production to the `dist` folder. |
| bun run serve | Serves the production build from the `dist` folder. |
| bun run test | Runs tests with vitest. |
| bun run coverage | Runs tests with code coverage |
or you can simply use [nyxi](https://github.com/nyxb/nyxi) and just enter `nyxr` and select your script
install it with:
```sh
npm install -g @nyxb/nyxi
```
## Folder Structure
No configuration or complicated folder structures, just the files you need to build your app:
```
vite-template-react
├── public
│ ├── favicon.svg
│ ├── react.svg
│ ├── robots.txt
│ ├── styled-component.svg
│ ├── vite.svg
│ └── vitest.svg
├── src
│ ├── assets
│ │ ├── react.svg
│ │ ├── vite.svg
│ │ └── vitest..svg
│ ├── components
│ │ ├── Avatar
│ │ │ ├── Avatar.test.tsx
│ │ │ ├── Avatar.tsx
│ │ │ └── index.ts
│ │ ├── Card
│ │ │ ├── Card.tsx
│ │ │ └── index.ts
│ │ ├── GlobalStyle
│ │ │ ├── GlobalStyle.tsx
│ │ │ └── index.ts
│ │ └── ImageLink
│ │ ├── ImageLink.test.tsx
│ │ ├── ImageLink.tsx
│ │ └── index.ts
│ ├── test
│ │ ├── App.test.tsx
│ │ └── setup.ts
│ ├── App.tsx
│ ├── constants.ts
│ ├── index.tsx
│ └── logo.svg
├── types
│ ├── bun.env.d.ts
│ ├── custom.d.ts
│ └── vite-env.d.ts
├── LICENSE
├── README.md
├── bun.lockb
├── eslint.config.js
├── index.html
├── package.json
├── tsconfig.json
├── vite.config.ts
└── vitest.config.ts
```
## Styleguide
For coding style, I use [eslint](https://eslint.org/) along with my custom configuration, [@nyxb/eslint-config](https://github.com/nyxb/eslint-config).
## Credits
Vite Template React is built and maintained by [Nyxb](https://nyxb.nexus).
## License
This project is licensed under the terms of the [MIT license](https://github.com/nyxb/vite-template-react/blob/main/LICENSE).