Skip to content

paolocattani/calcetto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calcetto : Table football app manager

Build/Test/Analyze CodeQL

Dependency Status devDependency Status

Integration

Maintainability Rating Security Rating Reliability Rating
Lines of Code Duplicated Lines (%) Bugs Vulnerabilities

Application diagram

workflow

Frontend

Backend

Test

Cli

Heroku

GitHub Action

Development

Backend runs with nodemon and ts-node to enable live reload along with typescript compilations. Frontend is bootstraped with CRA.

# Together
npm run dev

# Detached
npm run dev:server
npm run dev:client

# Bundle size
npm run analyze

# Eslint report ( used by Sonarcloud )
npm run lint:report

Connect to redis

redis-cli -h localhost -p 6379

Cli

Cli utilities for development

# Show help
./cli/cli.sh help

# Examples.

  # Build all and install production dependencies
  ./cli/cli.sh build --all --install

  # Update app version
  ./cli/cli.sh release --patch
  
  # Tag current commit with version from package.json ( also update heroku env vars )
  ./cli/cli.sh tag

  # Deploy current branch to heroku
  ./cli/cli.sh heroku --deploy

  # Create docker image and push it to Github container registry
  ./cli/cli.sh docker --build --push

  # Enable git hooks and set type ( for update version ) as minor
  ./cli/cli.sh hooks --enable --hook pre-commit --type minor

Test

# Frontend unit test
npm run CRA:test

# Coverage
npm run test:coverage

Production

# Build all ( see cli )
./cli/cli.sh build --all

# Run server in production mode
npm run prod

Heroku

# Login
heroku login

# List builds
heroku builds -a $APP_NAME

# Cancel pending build
heroku builds:cancel $ID -a $APP_NAME

Guides



Topic to explore