Installing Graphene Locally (Developers Only) - EscherLabs/Graphene GitHub Wiki
Overview
These instructions are for the installation and initial setup of Graphene on a Linux or MacOS for local development without Apache or a dedicated web server. Note: this should never be used for a production installation and is only suitable for local development and testing.
Install PHP
For Linux: Install the following packages (or similar) using yum, dnf, apt-get, etc.
dnf install php.x86_64 php-json.x86_64 php-mbstring.x86_64 php-xml.x86_64 mysql-server.x86_64 php-mysqlnd.x86_64 nodejs.x86_64
For MacOS: Install the following packages using brew
brew install node
brew install php72
brew link php72 --force
Install MySQL
For Linux: Install the following packages (or similar) using yum, dnf, apt-get, etc.
dnf install mysql-server.x86_64 php-mysqlnd.x86_64
For MacOS: Install the following packages using brew
brew install mysql
Install Composer
Follow the steps here to install composer Note: At the conclusion of this step, it is assumed that the "composer.phar" command exists in your home directory. If you put it somewhere else, please make note of that in the steps below.
Clone the Git Repository
git clone https://github.com/EscherLabs/Graphene.git
Install Dependencies with Composer
~/composer.phar install
Start Relevant Services (mysql)
For Linux:
sudo service mysqld start
For MacOS:
brew services start mysql
Serve Graphene with Artisan
php artisan serve --host=localhost
Open A Web Browser, and Perform Additional Setup
In a web browser, visit http://localhost