Git Product home page Git Product logo

hatchery-mch's Introduction

Badge.Team Hatchery

Build Status Maintainability Test Coverage Codacy Badge Codecov FOSSA Status Known Vulnerabilities Laravel Simple micropython software repository for Badges.

Live Site | API Playground | Documentation | GitHub

Installation

  • Requires PHP 8.1 or later
  • Requires Python 3.6 or later
  • Requires Node.js 16.14 or later
  • Requires Redis 3.2 or later
  • Requires Git 2.8 or later

For deployment on a server.

cp .env.example .env

Edit your database, mail and other settings..

Or copy the local dev environment config.

cp .env.dev .env

Install and configure required items.

pip install pyflakes
composer install
php artisan key:generate
php artisan migrate
yarn
yarn production

Install assets.

php artisan horizon:publish
php artisan livewire:publish

Installing and configuring the async websocket server.

yarn global add laravel-echo-server
laravel-echo-server init

Compiling and installing the patched minigzip.

wget http://zlib.net/zlib-1.2.12.tar.gz
tar xvf zlib-1.2.12.tar.gz
cd zlib-1.2.12
./configure
echo -e "#define MAX_WBITS  13\n$(cat zconf.h)" > zconf.h
make
sudo make install

If you would like to have Verilog support.

Install Icarus Verilog 0.9 or later.

TODO more info ;)

Services

You'll need a be running Laravel Horizon service.

For the websocket server.

laravel-echo-server start

Running the development server locally

After going through the steps

php artisan serve

If you don't want to install things and do the above steps, Docker makes all the above as easy as:

docker-compose up # -d for daemon mode
docker exec -it hatchery_laravel_1 php artisan migrate --seed
docker exec -it hatchery_laravel_1 yarn watch

Enjoy your Hatchery at http://localhost:8000

See: https://hatchery.badge.team/api

Running tests

Static analysis

vendor/bin/phpstan analyse

Unit and Feature testing

Run all the tests

vendor/bin/pest --no-coverage

Run a test suite (for a list of availabe suites, see /phpunit.xml)

vendor/bin/pest --testsuite <suite_name>

Run a specific test file

vendor/bin/pest tests/<optional_folders>/TestFileName

Run a specific test case

vendor/bin/pest --filter <test_case_name>

Generate code coverage as HTML

vendor/bin/pest --coverage-html docs/coverage

This will create the code coverage docs in docs/coverage/index.html

Not: Clear caches before testing!

php artisan route:clear && php artisan config:clear

Testing with Codeception

vendor/bin/codecept build
vendor/bin/codecept run

License

Hatchery is open-sourced software licensed under the MIT license.

The Laravel framework is open-sourced software licensed under the MIT license.

FOSSA Status

hatchery-mch's People

Contributors

annejan avatar dependabot[bot] avatar doebi avatar f0x52 avatar fossabot avatar jelly avatar martinmulder avatar prometheus-lain avatar psy0rz avatar pwuts avatar raboof avatar renzenicolai avatar sanderdh avatar scrutinizer-auto-fixer avatar snyk-bot avatar tjclement avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.