Git Product home page Git Product logo

dt-demo's Introduction

Demo React Godel project

Installation

Build docker

The image: docker build -t godel-demo .

Then JS dependencies

Run the installation:

docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app godel-demo npm install

Then build the webpack server assets:

docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app godel-demo npm run build

Usage

Run server docker run -it --rm -v "$PWD":/usr/src/app -p 9112:9111 -w /usr/src/app godel-demo npm run dev

Open in the browser http://127.0.0.1:9112/

Building for k8s cloud

First, build initial image with all the dependant files:

docker build -t godel-demo .

Then build actual cloud image:

docker build -f docker/Dockerfile -t front-nginx .

And tag it according to the AWS repo:

docker tag front-nginx:latest 375550435474.dkr.ecr.eu-west-2.amazonaws.com/front-nginx:latest

Then push it to the cloud:

docker push 375550435474.dkr.ecr.eu-west-2.amazonaws.com/front-nginx:latest

Then you'll have the image ready for the front end kubernetes app deployment declaration.

Useful commands:

npm run lint This command will check all .js and .jsx files that they match project code style.

npm run lint:fix Fixes all code style errors in .js, .jsx files.

npm run test Runs unit-tests. (all files with *.spec.js|*.test.js postfix will be matched)

npm run test:dev

Runs unit-tests in dev mode, so any changes will trigger job to rerun tests.

dt-demo's People

Contributors

gep avatar dependabot[bot] avatar

Watchers

Alexander Dorogin avatar

Forkers

gep

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.