Skip to content

Simple example Nodejs API with express in a docker container.

Notifications You must be signed in to change notification settings

kinho/example-node-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple example Nodejs API with express in a docker container.

Resources

Stars

Watchers

Forks