Coder Social home page Coder Social logo

visiky / dockersamples-todolist-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dockersamples/todolist-node

0.0 0.0 0.0 3.19 MB

This is TODO List made using Redis, EJS, Express, Node.js y Bootstrap 4. It can be used as an example of how to work with Redis and how to delete a single list element no matter what value it has.

License: MIT License

JavaScript 49.84% Dockerfile 4.19% EJS 45.97%

dockersamples-todolist-node's Introduction

A Simple To-do List using Docker

This is dockerized version of the original app that uses Node.js, Express, Bootstrap and Redis. It uses Docker compose to build both the frontend and backend.

Screen Shot 2022-04-21 at 4 05 40 PM

Tech Stack

  • NPM – a node package manager used for Node.js app development
  • Node.js – our runtime for building web applications
  • Express – a backend web-application framework for Node.js
  • Bootstrap – a toolkit for responsive, front-end web development
  • Redis – an in-memory, key-value, NoSQL database used for caching, data storage, and message brokering
  • Docker Desktop – a suite of software-development tools for creating, sharing, and running individual containers

Pre-requisite

Bring up the application

We will be using docker-compose utility to bring up the app.

services:
  
  app:
    build: ./
    volumes:
       - ./:/var/www/app
    ports:
      - 3000:3000
    environment:
      - REDIS_URL=redis://db:6379
      - NODE_ENV=development
      - PORT=3000
    command:
       sh -c 'node app.js'
    depends_on:
      - db
 
  db:
    image: redis

Bring up the app:

docker-compose up -d

Accessing the app

Open https://localhost:3000 to see the todo-list app up and running.

dockersamples-todolist-node's People

Contributors

ajeetraina avatar victoralonsocm avatar visiky 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.