Giter Club home page Giter Club logo

dory-front's Introduction

Dory Front

Dory-front is the frontend for our tool, Dory. You will find information about the tool himself and the requirements in the server configuration.

Run (for development or "low-usage" production)

Method 1 : From our DockerHub image :

docker run -d -p 80:8000 -e VUE_APP_BACKEND=https://your_backend_address/ beys/dory-front:latest

Method 2 : From sources

  1. Git clone : git clone https://github.com/be-ys/dory-front.git and go to the dory-front folder
  2. export VUE_APP_BACKEND=https://your_backend_address/
  3. npm install && npm run serve

In some cases, you may encounter an ERR_OSSL_EVP_UNSUPPORTED. The workaround is to enable legacy provider for openssl : export NODE_OPTIONS=--openssl-legacy-provider

Run (for large-scale production)

As you noticed, our Docker image and the precedent method for manual-run is not quite efficient : we are keeping a node process running, serving our content. This is why we highly recommend you to run using one of the following methods.

Run nginx locally

  • Build with npm run build
  • And use another web server (eg: nginx) to serve files

The main (and only) drawback is that you cannot set "on the fly" the backend url anymore, you have to define it before the build phase. That's why we are not providing such images, even if we're using it in our company.

Build nginx docker image

This requires you to build the docker image yourself and provide the VUE_APP_BACKEND variable when building the image. You cannot change this value unless you rebuild the docker image.

docker build -f Dockerfile.nginx -t dory-front --build-arg VUE_APP_BACKEND=https://your_backend_address/ .

You can then run the docker image using e.g. docker run --name dory-front -p 8000:8000 dory-front.

License

Distributed under MIT license. You will find a copy of the license here.

dory-front's People

Contributors

florian-forestier avatar teapot9 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.