Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabogit/expressjs-prisma
Railway deploy-able server
https://github.com/fabogit/expressjs-prisma
express postgresql prisma typescript
Last synced: 8 days ago
JSON representation
Railway deploy-able server
- Host: GitHub
- URL: https://github.com/fabogit/expressjs-prisma
- Owner: fabogit
- Created: 2022-09-13T13:09:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-13T13:09:57.000Z (over 2 years ago)
- Last Synced: 2024-11-06T20:38:05.119Z (about 2 months ago)
- Topics: express, postgresql, prisma, typescript
- Language: TypeScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
title: ExpressJS Prisma
description: An ExpressJS server that uses Prisma to connect to a PostgreSQL database
tags:
- express
- postgresql
- prisma
- typescript
---# ExpressJS Prisma Example
This is an [ExpressJS](https://expressjs.com/) REST API that uses [Prisma](https://www.prisma.io/) to connect to a Postgres database and CRUD todos.
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/LqCw_O)
## ✨ Features
- Prisma
- Express
- Postgres
- TypeScript## 💁♀️ How to use
- Install dependencies `yarn`
- [Provision a Postgres container on Railway](https://dev.new)
- Connect to your Railway project with `railway link`
- Migrate the database `railway run yarn migrate:dev`
- Run the Server app `railway run yarn dev`## 📝 Notes
This is a simple REST API for todo items. The available routes are
- `GET /todos` gets all todos
- `POST /todos` creates a new using `text` in the JSON body
- `GET /todos/:id` gets a todo by id
- `PUT /todos/:id` updates a todo by id
- `DELETE /todos/:id` deletes a todo by id