GithubHelp home page GithubHelp logo

kartikdot / ts-node-docker-starter Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 4.0 49 KB

Starter template for node typescript app running on Docker with hot reloading

Home Page: https://medium.com/@kartikio/setup-node-ts-local-development-environment-with-docker-and-hot-reloading-922db9016119

License: MIT License

Shell 4.83% TypeScript 95.17%
docker javascript nodejs typescript

ts-node-docker-starter's People

Contributors

kartikdot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ts-node-docker-starter's Issues

Typo?

Hi! Thanks for the write up to go with this, but I'm wondering if there's a typo.

  1. It builds right, which is nice (i.e., I can run docker-compose up), and I can see it rebuild when I make a change, but when I actually try to hit the port from my local machine, it doesn't work. Do we need to open up a port somewhere? (I would have thought the EXPOSE would be sufficient).
  2. Is there a typo in the docker file? Specifically, here vs here vs here
WORKDIR /usr/local/apps/myapp

COPY package.json ./
RUN npm install && npm cache clean --force
ENV PATH=/usr/local/myapp/node_modules/.bin:$PATH

WORKDIR /usr/local/apps/myapp/dev

Note that for the ENV PATH we have dropped the apps directory but it's present in both of the WORKDIR definitions.

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.