Files
archived-starters/javascript/with-nextjs-postgres/README.md
Jake Runzer 256cce952e Cleanup examples (#16)
- Remove serverless example (it was basically dup of with-postgres)
- Add plugin (e.g. postgres) to example name
- Update all javascript examples and make sure they work
- Cleanup a bit of the ui in nextjs example
2020-11-24 22:23:23 +00:00

445 B

NextJS Postgres Example

This example is a NextJS app that connects to Postgres database with node-pg.

How to use

  • Create a Railway project with the Postgres plugin
  • Connect to your Railway project with railway init
  • Run this example with railway dev

Notes

The SQL query being run simply fetches the current time in the database. It is located in pages/api.time.js