/koa-next

Hello World!!

Primary LanguageJavaScript

shintech/koa-next

Table of Contents

  1. Synopsis
  2. Usage
    a. .env
    b. Development
    c. Production
  3. TODO

Synopsis

The next.js frontend and koa.js backend are both running on seperate servers. Any request to /api will be proxied to the backend which would presumably be running on a different machine.

Installation

./install.sh

Usage

config/env/.env

PORT=8000
NODE_ENV=development
BASE_URL=https://domain
EMAIL=example@example.org

Development

npm run dev

# or

yarn dev

Production

docker-compose build && docker-compose up -d

TODO