mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
ExpressJS Postgres Example
This example starts an ExpressJS server that connects to a Railway PostgreSQL database.
✨ Features
- Postgres
- Express
- TypeScript
💁♀️ How to use
- Install dependencies
yarn - Create a Railway project with the Postgres plugin
- Connect to your Railway project
railway init - Start the server
railway run yarn dev
📝 Notes
The server started simply returns the current time in the database. The SQL
query is located in src/index.js.