Gzero Admin Panel
The project is still in the phase of intensive development.
This documentation assumed that you have already installed and fully configured Platform.
- The beginning
- Symbolic links
- Installing Node.js
- Installing Node packages
- How to develop?
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'.
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:
$ ./scripts/link_package.sh admin mount
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:
$ ./scripts/link_package.sh admin umount
To install all required Node packages just type into Admin package root directory:
$ npm install
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:
# /etc/hosts 127.0.0.1 localhost ... 127.0.0.1 dev.gzero.pl 127.0.0.1 api.dev.gzero.pl ...
There are 3 required things, that should be done, every time before you start to develop Admin package:
- In Platform root directory
./scripts/link_package.sh admin mountto mount your version of admin package.
- start Docker container for platform:
$ sudo docker-compose up -d.
- In Admin package run
npm startto 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:
URL: http://dev.gzero.pl:8000/en/login login: firstname.lastname@example.org pass: test
If admin panel appeared, everything works fine.
Now release your imagination and create your own magic ;-)
npm run build
To run karma server:
$ npm test
From now on you can write tests in