Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 492 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 492 Bytes

EXAMPLE NODE API

Description

Simple example Nodejs API with express in a docker container.

Requirements

  • node 18
  • yarn
  • docker
  • docker-compose

Configuration

Create file .env in root project based on .env.example file.

Installation

$ yarn install

Running api

# localhost:3000/
$ docker-compose up

# to clean up
$ docker compose down -v
$ docker rmi -f $(docker images -a -q)

Running test

$ cd test
$ npm run test