GithubHelp home page GithubHelp logo

simhaonline / lxdhub-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erickeller/lxdhub-web

0.0 0.0 0.0 6.67 MB

Display, search and copy LXD images using a web interface.

Home Page: https://lxdhub.xyz

License: Apache License 2.0

Shell 0.55% JavaScript 2.93% TypeScript 89.09% CSS 6.10% HTML 1.12% Dockerfile 0.22%

lxdhub-web's Introduction

LXD Hub Web Logo

Display, search and copy LXD images using a web interface.

This Repository is the Webinterface for the LXDHub REST API.

Gitter Circle CI Status

LXDHub Image Overview Screenshot

NodeJS

Greenkeeper badge

Installation

To install the depencies of lxdhub-web, run the following command

yarn

Run for Development

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

yarn start

Build for Production

Run the following command, to build the project. The build artifacts will be stored in the dist/ directory.

API_URL=<PROD_API_URL> LOGGING_URL=<PROD_API_URL>api/v1/log npm run build

Docker

Run in Development

Run and open the site on http://localhost:4200

docker build -t lxdhub-web:dev . && docker run -p 4200:80 lxdhub-web:dev

Run in Production

  1. Configure nginx (optional)

You can configure the nginx configuration, which is used to serve the built dist/ folder. Readme more about nginx.

Edit the configuration by running in your shell vi nginx-custom.conf

  1. Build the image
docker build -t lxdhub-web:prod --build-arg env=prod \
--build-arg API_URL=http://prod.com:3000 \
--build-arg LOGGING_URL=http://prod.com:3000api/v1/log .
  1. Run the image
docker run -p 80:80  lxdhub-web:prod
  1. Open LXDHub Web in your browser http://localhost

Tests

Run the following command to execute the unit tests via Karma.

npm run test
npm run test:coverage # For coverage report, generated in folder coverage

More Links

People

lxdhub-web's People

Contributors

brunnerlivio avatar greenkeeper[bot] avatar brunnel6 avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.