Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/safdarjamal/vite-template-react
A Vite + React starter template.
https://github.com/safdarjamal/vite-template-react
boilerplate boilerplate-application frontend hmr react reactjs vite vite-template-react vitejs
Last synced: 3 months ago
JSON representation
A Vite + React starter template.
- Host: GitHub
- URL: https://github.com/safdarjamal/vite-template-react
- Owner: SafdarJamal
- License: mit
- Created: 2021-05-06T17:25:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-07T14:06:05.000Z (about 1 year ago)
- Last Synced: 2024-10-12T23:43:45.322Z (3 months ago)
- Topics: boilerplate, boilerplate-application, frontend, hmr, react, reactjs, vite, vite-template-react, vitejs
- Language: JavaScript
- Homepage: https://vite-template-react.surge.sh
- Size: 384 KB
- Stars: 90
- Watchers: 5
- Forks: 54
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Vite Template React
A Vite + React starter template.![Vite Template React](https://github.com/SafdarJamal/vite-template-react/assets/48409548/4b1eb99e-01b8-4752-91c0-76930e7948c1)
## Folder Structure
No configuration or complicated folder structures, just the files you need to build your app:
```
vite-template-react
├── node_modules
├── public
│ ├── favicon.svg
│ └── robots.txt
└── src
├── App.css
├── App.jsx
├── App.test.jsx
├── index.css
├── index.jsx
└── logo.svg
└── setupTests.js
├── .gitignore
├── index.html
├── package.json
├── README.md
├── vite.config.js
```## Development
To get a local copy of the code, clone it using git:
```
git clone https://github.com/SafdarJamal/vite-template-react.git
cd vite-template-react
```Make it your own:
```
rm -rf .git && git init && npm init
git add .
git commit -m "Initial commit"
```Install dependencies:
```
npm i
```Now, you can start a local web server by running:
```
npm start
```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 |
| ------------- | ------------------------------------------------------- |
| npm start | Runs the app in the development mode. |
| npm test | Launches the test runner in the interactive watch mode. |
| npm run build | Builds the app for production to the `dist` folder. |
| npm run serve | Serves the production build from the `dist` folder. |## Credits
Vite Template React is built and maintained by [Safdar Jamal](https://safdarjamal.github.io).
## License
This project is licensed under the terms of the [MIT license](https://github.com/SafdarJamal/vite-template-react/blob/main/LICENSE).