GithubHelp home page GithubHelp logo

quick-react's Introduction

React Vitest Template

A starter template for building React apps with Vite. Includes Vitest for unit testing and a hefty .gitignore file.

Usage

mkdir your-app-name
cd your-app-name
npx degit criesbeck/react-vitest
npm install

Test

Verify that the initial app works. Run

npm start

and open the URL displayed.

Verify that the unit tests work with

npm test

Two tests should run and pass.

Scripts

package.json defines the following scripts:

Script Description
npm start Runs the app in the development mode.
npm run dev Runs the app in the development mode.
npm run build Builds the app for production to the dist folder.
npm run serve Serves the production build from the dist folder.
npm test Starts a Jest-like test loop

Git

If everything is working, set up your local and remote repositories.

Folder Structure

your-app-name
├── node_modules
├── public
│   ├── favicon.svg
│   └── robots.txt
└── src
    ├── App.css
    ├── App.jsx
    ├── index.css
    ├── index.jsx
    └── logo.svg
├── .gitignore
├── index.html
├── package.json
├── README.md
├── vite.config.js

Credits

React-Vitest built and maintained by Chris Riesbeck.

Inspired by SafdarJamal/vite-template-react. Expanded to include Vitest and some sample tests.

Thanks to Rich Harris for degit.

Gitignore file created with the Toptal tool.

License

This project is licensed under the terms of the MIT license.

quick-react's People

Contributors

alexromanenkonorthwestern avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.