Coder Social home page Coder Social logo

docker-express's Introduction

Docker with NodeJS + expres

Simple rest api with NodeJS and Express. I used typescript for unknown reason but you can do it in regular JS.

How to get started

Have docker installed on your system.

Then simple run: docker build -t docker-expressjs . (docker-expressjs) is just an example, you can use anything. docker build -t potato .. But keep in mind to have meaningful docker names, so it makes sense once name is given.

After docker is built, we can run: docker run -d 8080:8080 docker-express We are running docker run -d ... the -d --detach , -d Run container in background and print container ID

we just running that container in the background process with the container port of 8080 and opening it to 8080 with the given container name: docker-express in this example, again it can be anything.

After this, you're done! your first simple Docker contrainer that is powered with NodeJS+Express.

More work to be done...

docker-express's People

Contributors

kruzus avatar

Watchers

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