-
Notifications
You must be signed in to change notification settings - Fork 11
Installing Graphene Locally (Developers Only)
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.
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
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
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.
git clone https://github.com/EscherLabs/Graphene.git
~/composer.phar install
For Linux:
sudo service mysqld start
For MacOS:
brew services start mysql
php artisan serve --host=localhost
In a web browser, visit http://localhost