Gzero Admin Panel
3,444
3
9
Package Data
Maintainer Username: AdrianSkierniewski
Maintainer Contact: adrian.skierniewski@gmail.com (Adrian Skierniewski)
Package Create Date: 2014-10-13
Package Last Update: 2019-03-16
Language: JavaScript
License: MIT
Last Refreshed: 2024-12-22 03:14:16
Package Statistics
Total Downloads: 3,444
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 9
Total Forks: 1
Total Open Issues: 0

GZERO ADMIN Build Status

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

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:

$ ./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

Installing Node.js

  • Download Node.js
  • Installing from package managers

Installing Node packages

To install all required Node packages just type into Admin package root directory:

$ npm install

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:

# /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:

  1. 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.
  1. 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:

URL: http://dev.gzero.pl:8000/en/login
login: admin@gzero.pl
pass: test

If admin panel appeared, everything works fine.

Now release your imagination and create your own magic ;-)

How to manually build?

 npm run build

JavaScript tests

To run karma server:

$ npm test

From now on you can write tests in admin/src/app/tests.