koa boilerplate

Koa API starter (odm - mongoose, data validation - joi, authentication - jwt, configuration - dotenv)

1
1
JavaScript

KoaJS API

Awesome NodeJS API

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

Installing

A step by step series of examples that tell you how to get a development env running

Install all dependencies

npm i

Make .env file based on .env.example provided

cp .env.example .env

Start Docker MongoDB container

docker run -p 27017:27017 --name my-mongo -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=example -v $PWD/mongodb:/data/db mongo:4.0.4

Running

Start app

npm run start

Start app with code changes detection (Nodemon)

npm run start:watch

Deployment

TODO: Add additional notes about how to deploy

Built With

  • KoaJS - Next generation web framework for NodeJS

License

MIT