Giter Site home page Giter Site logo

pho-cli's Introduction

Pho-CLI Build Status

A command line interface for the Phở stack. Allows you build graphql files, initialize new projects, and expose a non-blocking event-driven RESTful API via HTTP or HTTPS.

Getting Started

The recommended way to install pho-cli is through composer.

git clone https://github.com/phonetworks/pho-cli/
cd pho-cli && composer install

Available Commands

build Builds graphql schema into executable Phở. This may be used if you have cloned a recipe, modified and need to compile it.

Usage: bin/pho.php build [<source>] [<destination>] [<extension>] where extension is the file extension (.pgql by default)

init Initializes a new project. This is used when you'd like to install a new kernel based on standards or a preset such as the ones that can be found at https://github.com/pho-recipes. Please note, if there is a .env file present in the root folder of pho-cli, it is considered to be your server settings, hence copied onto the initialized project.

Usage: bin/pho.php init <destination> [<skeleton>] where destination is the folder where you'd like the kernel to reside, and skeleton is the name of the template to use or a directory where your compiled pgql files reside.

serve Runs a HTTP server based on Phở Graph. This may be used once you've initialized a kernel.

Usage: bin/pho.php serve [<kernel>] where kernel points to the directory where the kernel resides.

test Similar to the serve command, except that it runs the HTTP server in a Vagrant box, hence you don't need to have all the system requirements installed on your system, except the Vagrant app itself. Ideal for testing purposes.

Usage: bin/pho.php test [<kernel>] where kernel points to the directory where the kernel resides.

Run bin/pho.php help at any time for more information.

License

MIT, see LICENSE.

pho-cli's People

Contributors

esokullu avatar poratuk avatar darshakpatel52 avatar

Watchers

James Cloos 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.