MCPcopy Index your code
hub / github.com/erdoganbulut/viterts

github.com/erdoganbulut/viterts @v0.2.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.2 ↗ · + Follow
20 symbols 56 edges 20 files 0 documented · 0% updated 2y agov0.2.2 · 2024-03-05★ 386 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

logo of viterts repository

Viterts

Features

Installation

npx degit erdoganbulut/viterts my-viterts-app
cd my-viterts-app
yarn # If you don't have yarn installed, run: npm install -g yarn

Checklist

When you use this template, try follow the checklist to update your info properly

  • [ ] Rename name and author fields in package.json
  • [ ] Change the author name in LICENSE
  • [ ] Change the title in index.html
  • [ ] Change the favicon and logo in src/assets
  • [ ] Remove dummy code and components
  • [ ] Clean up the README's

Available Scripts

In the project directory, you can run:

yarn dev
yarn build
yarn preview
yarn lint
yarn lint:ts
yarn lint:eslint
yarn format:ts
yarn format
yarn format:check
yarn test

Development

Folder Structure

Folder structure should look like this;

src/
├── App.test.tsx
├── App.tsx
├── main.tsx
├── setupTests.ts
├── test-utils.ts
├── vite-env.d.ts
├── assets
│   ├── %image%.jpg
│   └── %icon%.svg
├── common
│   ├── request.ts
│   └── %util_name%.ts
├── components
│   ├── partials
│   │   └── %ModuleName%
│   │       ├── %ParticalName%.tsx
│   │       ├── %ParticalName%.test.tsx
│   │       └── %ParticalName%.scss
│   └── shareds
│       └── %ParticalName%
│           ├── %ParticalName%.tsx
│           ├── %ParticalName%.test.tsx
│           └── %ParticalName%.scss
├── routes
│   ├── %ModuleName%
│   │   ├── index.tsx
│   │   ├── index.scss
│   │   ├── %ModuleRouteName%
│   │   │   ├── index.tsx
│   │   │   ├── %ModuleRouteName%.test.tsx
│   │   │   └── %ModuleRouteName%.scss
│   │   └── %ModuleRouteName%
│   │       ├── index.tsx
│   │       ├── %ModuleRouteName%.test.tsx
│   │       └── %ModuleRouteName%.scss
│   └── index.tsx (router)
├── store
│   ├── slices
│   │   ├── %module-name%.slice.ts
│   │   └── %module-name%.slice.ts
│   ├── hooks.ts
│   └── index.ts
└── styles
    ├── global.scss
    └── vendors.scss

State Management

Redux, a state management library, was used for state management in the project. It is divided into redux slices to avoid complexity, ensure maintainability, and divide into domains. Use store (redux) for your global states, states that you will use at many different points, states that you will access and manage remotely.

Go to the src/store/slices folder. Open or create the slice file of the module whose state you will manage. If you have created a new slice, you must define it in the src/store/index.ts file.

Style Management

For global styling operations, there are global sass files under the src/styles folder. The vendors.scss you will use to add your dependencies and global.scss for your global styles are located here. You can also create global sass files here that you want to import in other sass files like shareds.scss or variables.scss.

Components own style files should be located next to the %componentname%.tsx file like as src/routes/Episode/List/List.scss

Linter / Eslint

The project has a strong linter configuration to ensure consistency and maintainability. It generally follows the airbnb and prettier configuration.

Component Structure

All components in the project are created as functional component. Continuity should be ensured by not using class components unless needed.

Contributors

Erdoğan BULUT Ömer AYYILDIZ

Extension points exported contracts — how you extend this code

CounterState (Interface)
(no doc)
src/store/slices/counter.slice.ts
IUser (Interface)
(no doc)
src/store/slices/user.slice.ts
IUserState (Interface)
(no doc)
src/store/slices/user.slice.ts

Core symbols most depended-on inside this repo

fetchRequest
called by 4
src/common/request.ts
fetchCount
called by 1
src/store/slices/counter.slice.ts
selectCount
called by 1
src/store/slices/counter.slice.ts
incrementIfOdd
called by 1
src/store/slices/counter.slice.ts
randomIntFromInterval
called by 1
src/common/random-number.helper.ts
AllTheProviders
called by 0
src/test-utils.tsx
customRender
called by 0
src/test-utils.tsx
App
called by 0
src/App.tsx

Shape

Function 16
Interface 3
Enum 1

Languages

TypeScript100%

Modules by API surface

src/store/slices/user.slice.ts4 symbols
src/store/slices/counter.slice.ts4 symbols
src/test-utils.tsx2 symbols
src/common/request.ts2 symbols
src/routes/index.tsx1 symbols
src/routes/Home/index.tsx1 symbols
src/routes/About/index.tsx1 symbols
src/components/shareds/Quote/index.tsx1 symbols
src/components/partials/Home/Counter/index.tsx1 symbols
src/components/partials/About/Users/index.tsx1 symbols
src/common/random-number.helper.ts1 symbols
src/App.tsx1 symbols

For agents

$ claude mcp add viterts \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page