Code Monkey home page Code Monkey logo

hello-world's Introduction

hello-container

Sample application to play with containers!

Disclaimer

This is not a real project. I use this application to illustrate some training or talks.

Versions

This project has been tested with NodeJS v8.4.0 and NPM v5.3.0.

Structure

The application contains three parts: a frontend, a server and a redis database, interacting like this :

[ Frontend (web application)] --> [ Backend (nodeJs server)] --> [ Database (redis server)]


The frontend can run without server or database, in a mode called Offline mode.

Frontend build

# install dependencies
npm install

# build for production with minification
npm run build

# You can now serve through a web server like nginx the content of the dist/ folder

Backend build

npm install --production

You can then run the server by running:

node ./server.js

The backend requires a redis server. You can pass the host running the redis server through the REDIS_HOST environment variable.

npm install --production
REDIS_HOST=redis.example.net node ./server.js

hello-world's People

Contributors

jeanfabrice avatar mbimbij avatar

Watchers

James Cloos avatar Julien BONACHERA avatar Alexis "Horgix" Chotard 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.