Download the PHP package gzero/admin without Composer
On this page you can find all versions of the php package gzero/admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package admin
GZERO ADMIN
The project is still in the phase of intensive development.
This documentation assumed that you have already installed and fully configured Platform.
Table of contents
- The beginning
- Symbolic links
- Installing Node.js
- Installing Node packages
- How to develop?
- JavaScript tests
The beginning
First of all clone Admin package repository into your directory. For your convenience, Platform and Admin repositories should be stored in the same root directory, in exmaple 'gzero'.
Mounting admin package in platform
Admin package is required dependency for Platform in composer. Mounting admin packege is required to provide the latest changes of Admin package in Platform.
In platform root directory type the following command:
From now on all changes in Admin package will be available in Platform.
To unmount Admin package type the following command in platform root directory:
Installing Node.js
Installing Node packages
To install all required Node packages just type into Admin package root directory:
How to develop?
For proper communication with the API is required to modify the hosts file in your OS. In Ubuntu hosts file should looks like the following:
There are 3 required things, that should be done, every time before you start to develop Admin package:
- In Platform root directory
- use
./scripts/link_package.sh admin mount
to mount your version of admin package. - start Docker container for platform:
$ sudo docker-compose up -d
.
- use
- In Admin package run
npm start
to start gulp watch. Now each time when you save file gulp will rebuild app.
After these steps try to log in to the admin panel:
If admin panel appeared, everything works fine.
Now release your imagination and create your own magic ;-)
How to manually build?
JavaScript tests
To run karma server:
From now on you can write tests in admin/src/app/tests
.