Coder Social home page Coder Social logo

ytake / nazg-skeleton Goto Github PK

View Code? Open in Web Editor NEW
5.0 6.0 1.0 81 KB

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

License: MIT License

Dockerfile 7.05% Hack 88.35% Shell 4.59%
hhvm hack hack-microframework adr web-framework hacklang dependency-injection

nazg-skeleton's Introduction

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.

nazg-skeleton's People

Contributors

ytake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

blue-goheimochi

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.