mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
- 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
14 lines
393 B
Markdown
14 lines
393 B
Markdown
# Postgres Example
|
|
|
|
This example connects to a Postgres database with [node-pg](https://www.npmjs.com/package/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 start`
|
|
|
|
## Notes
|
|
|
|
The SQL query being run simply fetches the current time in the database. It is located in `src/index.js`
|