-
Notifications
You must be signed in to change notification settings - Fork 4
Deploying development version (deprecated)
- python 3.4+
- python module virtualenv
- mongod
- npm 5.3+
- nodejs 8.1+
- angular-cli 1.3+
You might want start each process (database, backend, frontend) in separate screens instead of in-background so you can debug them more easily.
First off, start mongo database server daemon. Then in api
rename config_sample.ini
to config.ini
.
Go to api/liberouterapi/modules/securitycloud
and rename config-sample.ini
to config.ini
. Then go
to www/src/assets
and rename config_sample.json
to config.json
. As a last thing edit www/proxy.json
and change:
"/libapi": {
"target": "https://localhost/",
"secure": false
},
to
"/libapi": {
"target": "http://localhost:5555/",
"secure": false,
"pathRewrite": {"/libapi": ""}
},
First off, sandbox your api with virtualenv. In api
folder run:
$ virtualenv venv
$ source venv/bin/activate
Now you can install python requirements:
$ cd api
$ pip3 install -r requirements.txt
At this point, just run following command from repo root:
$ python3 api
Go to www
. Run:
$ ng serve --host <your_ip_here> --proxy proxy.json
After compiling, it will fail with message regarding AppModule and NgModule. Keep it running. Go to
src/app
and touch any app.component.*
file. Compilation should now success. This will happen each
time you'll run ng serve
command.
Open your browser at http://your_ip_here:4200
First time you'll try to log in, system will detect missing admin user, and you will be prompted to create one.