Sign inSign up

liuzheng/luna

By liuzheng

•Updated about 7 years ago

Image
0

244

liuzheng/luna repository overview

⁠Luna

This project was generated with Angular CLI⁠ version 8.3.2.

$ ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 8.3.2
Node: 12.4.0
OS: darwin x64
Angular: 8.2.4
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.801.3
@angular-devkit/build-angular     0.801.3
@angular-devkit/build-optimizer   0.801.3
@angular-devkit/build-webpack     0.801.3
@angular-devkit/core              8.1.3
@angular-devkit/schematics        8.3.2
@angular/cdk                      8.1.4
@angular/cli                      8.3.2
@angular/flex-layout              8.0.0-beta.27
@angular/material                 8.1.4
@ngtools/webpack                  8.1.3
@schematics/angular               8.3.2
@schematics/update                0.803.2
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.35.2

⁠Development server

Run npm start or 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 npm run build or 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 docker build, it will build automatically.

docker build -t luna .

Now this project is automatically build in Docker Hub, you can pull liuzheng/luna for the latest version.

In Docker Hub⁠ the tag:dev is for the dev version.

⁠run

docker run -d -p <PORT>:80 liuzheng/luna

You can navigate to the http://IP:PORT/luna/⁠ .

Tag summary

Content type

Image

Digest

Size

10.4 MB

Last updated

about 7 years ago

docker pull liuzheng/luna