Skip to content

Lecter2508/rccui

Repository files navigation

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