Coder Social home page Coder Social logo

pills-tracker-nest's Introduction

Description

This app create with Nest.js framework.

Installation

npm install

Running the app

# development
npm run start

# watch mode
npm run start:dev

# production mode
npm run start:prod

Dockerfile commands

FROM - The base image to use in the build. This is mandatory and must be the first command in the file.

COPY - Adds files from your Docker client’s current directory.

RUN - Executes a command and save the result as a new layer

WORKDIR - Set the default working directory for the container

EXPOSE - Opens a port for linked containers

CMD - The command that runs when the container starts

Docker commands

Build container

docker build -t ${CONTAINER_NAME} .

Start container

docker run -p ${PORT} ${CONTAINER_NAME}

Heroku commands

Read more here about Heroku

Login to the registry:

heroku container:login

Create a Heroku app:

heroku create

#That command will return an app name, copy it to  use it for the next command.
heroku container:push web --app ${YOUR_APP_NAME}

And realase

heroku container:release web  --app ${YOUR_APP_NAME}

Important

Dockerfile must be capitalized!

pills-tracker-nest's People

Contributors

bradfora avatar dimagreat avatar skonvisar avatar baksha2008 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.