/nazg-skeleton

Begin developing HHVM/Hack Http Microframework Skeleton. Nazg is Action-Domain-Responder (ADR) Micro framework for HHVM/Hack

Primary LanguageHackMIT LicenseMIT

Nazg Framework Skeleton

Nazg is a Action-Domain-Responder (ADR) Micro framework that helps you quickly write simple yet powerful web applications for HHVM/Hack.

Begin developing HHVM/Hack Http Microframework Skeleton!

Build Status Packagist Packagist

Supported

HHVM 4.41 and above.

About Nazg

Create Project

$ composer create-project nazg/skeleton nazg-app-sample --prefer-dist

For Develop

Execute the hh-autoload.hack script each time you add the class file.

For Example

$ hhvm ./vendor/bin/hh-autoload.hack

Testing

$ hhvm ./vendor/bin/hacktest.hack tests/

CLI Tools

CLI Tools Provided by Default

Cache Clear Command

for Nazg\HCache

$ hhvm ./bin/cache-clear.hack

Container Cache Clear Command

for Nazg\Glue

$ hhvm ./bin/container-cache-clear.hack 

Docker

Using hhvm/hhvm-proxygen:latest and nginx:1.17-alpine Containers

$ docker-compose build hhvm-dev web-server
$ docker-compose up -d
$ docker-compose exec hhvm /bin/bash -c 'cd /var/www && composer update'

Composer Scripts

Class Registrarion

docker-compose exec hhvm /bin/bash -c 'cd /var/www && composer register'

Testing

docker-compose exec hhvm /bin/bash -c 'cd /var/www && composer tests'

Framework Repository

Framework

License

The Nazg Framework is licensed under The MIT License (MIT). See License File for more information.