Skip to content
Angular4 project for web terminal
Branch: master
Clone or download
Latest commit 4b7f405 Mar 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
deploy feat: build with yaml Dec 28, 2017
docs docs(docs/developer_guide.md): add developer guide Dec 29, 2017
e2e
i18n [Update] 修改翻译 Feb 15, 2019
src [Update] 修改版本号 Mar 22, 2019
tools [Update] 修改luna May 18, 2018
.angular-cli.json [Update] 添加不常动的内容 May 28, 2018
.dockerignore feat: udpate Feb 26, 2018
.editorconfig
.gitignore [Update] 修改版本号 Aug 7, 2018
.gitmodules publish Dec 24, 2017
.travis.yml
Dockerfile feat: udpate Feb 26, 2018
LICENSE
README.md Merged in dev (pull request #1) Dec 28, 2017
karma.conf.js feat: luna with angular4 Nov 21, 2017
mock.py
nginx.conf feat: update Feb 27, 2018
package-lock.json [Update] 修改package lock Feb 13, 2019
package.json [Update] 修改ssh term Feb 13, 2019
protractor.conf.js feat: luna with angular4 Nov 21, 2017
proxy.conf.json
tsconfig.json
tslint.json feat: update the hole framework Apr 24, 2018

README.md

Luna

This project was generated with Angular CLI version 1.3.2.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Running On Your Server

Untar the luna release tar file, and put it under the folder you like.

Nginx config:

  location /luna/ {
    try_files $uri / /index.html;
    alias /path/of/your/luna/;
  }
  
  location /socket.io/ {
        proxy_pass http://localhost:5000/socket.io/;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        # WebSocket support (nginx 1.4)
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
  }

Luna in Docker

build

Run this script, it will build automatically.

./tools/docker_build.sh

run

docker run -d -p 80:80 luna
You can’t perform that action at this time.