Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 1.31 KB

File metadata and controls

13 lines (7 loc) · 1.31 KB

Fortunes implementation using Next.js

This is an implementation of the TechEmpower Fortunes benchmark using Next.js

Run the app by executing npm run dev in the app root.

The app requires a Postgres database based on the TechEmpower Postgres Docker image. Clone the TechEmpower repo, navigate to ./toolset/databases/postgres, and run docker build -f .\postgres.dockerfile -t postgres_te . to build a container from that image, then docker run -p 5432:5432 --name postgres_te postgres_te.

NOTE: Currently using Next.js version 13.4.0 rather than latest due to this issue

The app is using a custom server to enable clustering (scaling node instances across CPUs) in production based on the custom server example here.

The Dockerfile will build a standalone image (based on node-alpine) for running the app on port 3000. Note that in docker the host name for the Postgres database is set to postgres_te.