GithubHelp home page GithubHelp logo

isabella232 / tldr-todo-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from accenture/tldr-todo-backend

0.0 0.0 0.0 5.01 MB

Backend component of the demonstration Todo app for The Lightweight Docker Runtime

JavaScript 86.55% Shell 13.45%

tldr-todo-backend's Introduction

A Hapi To Do Backend

This is an example implementation of a Todo-Backend API spec using the Hapi.js framework.

This example saves todos in a MongoDB collection.

Run the specs! Demo!

Pre-requisites

The following are necessary to run the application:

  • Docker Toolbox 1.9, with Docker-machine and Docker-compose
  • Node.js (4.x or 5.x recommended)

Building the container

In order to build the container, first install the needed NPM dependencies for the Node.js backend:

npm install

Then, create a Docker node with docker-machine:

docker-machine create -d virtualbox dev
eval $(docker-machine env dev)

Finally, build the container:

docker build -t backend .

Running with MongoDB

There's a ready-made Compose file available that will run the application together with Mongo:

docker-compose up

Accessing the application

Run the following command to obtain the IP address of the docker-machine host:

docker-machine ip dev

Then, point the application to port 8080 of the given IP address.

tldr-todo-backend's People

Contributors

oscarrenalias 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.