/unitech

Primary LanguageTypeScript

unitech-api

This is a repository for uniTech company for fetch and update category

Responsibilities

  • category info
  • fetch all categories
  • update amount of counter

please before run test execute data in defaultData.script inside root project or create data yourself

Installation

 $ npm install

Running the app

 $ npm run dev

Testing the app

# linux and macos
$ npm run test

# windows
$ npm run test:w

Convintions

Directory

  • controllers
  • routers
  • service crud and what ever about db
  • graphql schema and resolver for graphql endpoints are here
  • provider database connection orm and running project

Name

  • Directories: flatcase & snake_case
  • Files : flatcase & dot.case
  • Class : PascalCase
  • Functions : flatcase , snake_case
  • Anonymous Function (Alphabet): Capitalisation & PascalCase
  • Anonymous Function (String & number): snake_case (state_200 )
  • variable : flatcase & snake_case