Sign inSign up

jch254/ecs-demo-api

By jch254

Updated almost 10 years ago

Simple API

Image
0

1.4K

jch254/ecs-demo-api repository overview

Demo-api

Demo API powered by Node.js/Express.

Running development server (with live-reloading)

  1. Run the following commands in the app's root directory then submit requests to http://localhost:3000
yarn install
yarn run dev

Running production version in Docker container

  1. Run the following commands in the app's root directory then submit requests to http://localhost:YOUR_CONTAINER_PORT. YOUR_CONTAINER_ID will be returned by the docker run command and YOUR_CONTAINER_PORT will be returned by the docker port command.
docker build -t demo-api .
docker run -d -P demo-api
docker port YOUR_CONTAINER_ID

Tag summary

Content type

Image

Digest

Size

63 MB

Last updated

almost 10 years ago

docker pull jch254/ecs-demo-api