An open API service indexing awesome lists of open source software.

https://github.com/b-l-u-e/scrimba-passenger-counter

Built scrimba passenger counter app using HTML, CSS and JS
https://github.com/b-l-u-e/scrimba-passenger-counter

Last synced: 8 months ago
JSON representation

Built scrimba passenger counter app using HTML, CSS and JS

Awesome Lists containing this project

README

          

# Buiding Passenger counter application

Quick start:

- create new vite project `npx create-vite scrimba-passenger-counter --template vanilla`

- cd "scrimba-passenger-counter"

- install dependencies and dev server `npm install && npm run start`

For existing vite project

- install Vite and React Refresh Plugin `npm i -D vite @vitejs/plugin-react-refresh`

- edit vite.config.js

```
// vite.config.ts
import { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'

export default defineConfig({
plugins: [reactRefresh()]
})
```

- update package.json scripts

```
// package.json
{
"scripts": {
"start": "vite",
"build": "vite build"
// if you need to run eslint and tsc
"build": "eslint src && tsc && vite build",
},
}

```

- run the project `npm run start`