Git Product home page Git Product logo

www-page's Introduction

International Inc Web Page

Requirements

  • Node.js v10.x
  • npm v6.x

NOTE: Install nvm to easily switch between Node.js versions on your development machine. Run npm install -g npm@6 to update to npm 6.x if necessary.

See gulpfile.js for task config.

Development Server with Live Reload

npm install
npx bower install
npx gulp serve

Production Build (Assets only)

Compiled assets are written to a dist/ folder in the root of this repository.

npx bower install
npm install
npx gulp

Production Build (Docker image)

Creates an image that can be deployed. Note this uses Node.js to serve the assets. Apache/NGINX would be better, but this works for a demo.

NAME=intl-inc
docker build -f Dockerfile . -t $NAME
docker run -p 8080:8080 $NAME

Docker Local Development Server

Use this method to avoid messing with Node.js and npm versions on your host machine.

# Build the dev container
docker build -f Dockerfile.dev . -t intlinc-dev

# Run the dev container with the dev/ directory mounted
docker run -p 8080:8080 -v "$(pwd)/dev:/usr/src/app/dev/" intlinc-dev

OpenShift Deployment using CLI

Note that --name is required since the default name generated starts with a number, and this is not supported.

oc new-app nodejs:10~https://github.com/jbossdemocentral/3scaleworkshop-wwwpage \
--name wwwpage

www-page's People

Contributors

hguerrero avatar evanshortiss avatar arsenalsantander avatar

Watchers

 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.