Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/easterneas/expressjs-postgres
https://github.com/easterneas/expressjs-postgres
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/easterneas/expressjs-postgres
- Owner: easterneas
- Created: 2023-07-17T13:01:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-17T13:01:27.000Z (over 1 year ago)
- Last Synced: 2024-11-08T02:47:40.861Z (2 months ago)
- Language: TypeScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
title: ExpressJS Postgres
description: An ExpressJS server that connects to a PostgreSQL database
tags:
- express
- postgresql
- typescript
---# ExpressJS Postgres Example
This example starts an [ExpressJS](https://expressjs.com/) server that connects
to a Railway PostgreSQL database.[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/VUVlu3)
## ✨ Features
- Postgres
- Express
- TypeScript## 💁♀️ How to use
- Install dependencies `yarn`
- [Create a Railway project with the Postgres plugin](https://dev.new)
- Connect to your Railway project `railway link`
- 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`.