Demo API powered by Node.js/Express.
- Run the following commands in the app's root directory then submit requests to http://localhost:3000
yarn install
yarn run dev
- 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 thedocker port
command.
docker build -t demo-api .
docker run -d -P demo-api
docker port YOUR_CONTAINER_ID