Small boilerplate demonstrating a simple microservice that fetches data from an open web api and renders react components on both server and client side using next.js.
Part of my presentation at DevTeach Montreal 2017.
We're using a /posts
endpoint provided by the http://jsonplaceholder.typicode.com/ service that provides placeholder data.
docker build -t nextjs-api-fetch-example:latest .
docker run --name nextjs-api-fetch-example-01 -d -p 3000:3000 nextjs-api-fetch-example:latest
MIT © 2017 Ruy Adorno