A simple example Koa microservice
You can run the project with Docker or Node.
- Clone this repo
- Create the
.env
file, use the file.env-example
as example.
-
Docker
Build an image from project:
docker build -t api-koa-example .
Run the docker image:
docker run -it -p 3000:3000 api-koa-example
-
Node
Install dependencies:
npm install
Run the project:
npm start
To run the tests execute:
npm run test