Lecter2508 / rccui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User interface for RCC (a tweakable idea)

A template on how to create an user interface for RCC.

How to install ๐Ÿค“

git clone https://github.com/Lecter2508/rccui

How to run ๐Ÿ‘พ

cd /path/of/project
npm i
npm run dev

How to update after a breaking change ๐Ÿ˜ฑ

It's always a good idea to run the install command from the package manager when new packages have been installed:

cd /path/of/project
npm i

To see if new packages have been installed, consult the package.json for any changes:

cd /path/of/project
nano package.json

How to test the rccCalculator function ๐Ÿค“

cd /path/of/project
npm run test

Vitest to write better code

To create a test file, add .test.js after the file name.

Vitest doc

Quick example :

// sum.js
export function sum(a, b) {
  return a + b
}
// sum.test.js
import { expect, test } from 'vitest'
import { sum } from './sum'

test('adds 1 + 2 to equal 3', () => {
  expect(sum(1, 2)).toBe(3)
})

Project infos

Directories

path files code comment blank total
src 11 385 147 48 580
src (Files) 4 144 6 20 170
src/Component 3 100 133 18 251
src/assets 1 1 0 0 1
src/utils 3 140 8 10 158

About


Languages

Language:JavaScript 73.3%Language:TypeScript 25.3%Language:HTML 1.3%Language:CSS 0.2%