shintech/koa-next
Table of Contents
- Synopsis
- Usage
a. .env
b. Development
c. Production - 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
- more descriptive names for redux actions
- https://github.com/zalmoxisus/remotedev-server - move remotedev server to local environment
- https://github.com/zeit/next.js/tree/canary/examples/with-sw-precache
- https://github.com/zeit/next.js/tree/canary/examples/with-strict-csp-hash
- https://github.com/zeit/next.js/tree/canary/examples/with-sitemap-and-robots-express-server