paolocattani / calcetto

Calcetto Webapp

Home Page:https://calcetto2020stage.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Calcetto Webapp

https://calcetto2020stage.herokuapp.com

License:MIT License


Languages

Language:TypeScript 89.7%Language:Shell 5.1%Language:JavaScript 3.4%Language:CSS 0.8%Language:Dockerfile 0.4%Language:HTML 0.3%Language:Python 0.2%Language:Procfile 0.0%