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-11-22 03:13:57 |
Package Statistics | |
---|---|
Total Downloads: | 3,444 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 9 |
Total Forks: | 1 |
Total Open Issues: | 0 |
The project is still in the phase of intensive development.
This documentation assumed that you have already installed and fully configured Platform.
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:
./scripts/link_package.sh admin mount
to mount your version of admin package.$ sudo docker-compose up -d
.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 ;-)
npm run build
To run karma server:
$ npm test
From now on you can write tests in admin/src/app/tests
.