An open API service indexing awesome lists of open source software.

https://github.com/superoo7/prisma2-chat-app

Simple chat app implemented with Prisma2 using Typescirpt, Graphql
https://github.com/superoo7/prisma2-chat-app

graphql prisma prisma2 typescript websocket

Last synced: about 1 month ago
JSON representation

Simple chat app implemented with Prisma2 using Typescirpt, Graphql

Awesome Lists containing this project

README

          

# Simple Chat App with Prisma

![](chat.png)

## Tech Stack

### Backend (/prisma /src)

- PostgresSQL
- Node.js
- Prisma V2
- GraphQLServer from graph-yoga
- Typescript
- GraphQL

### Frontend (/cra)

- Create-React-App
- Styled-Component
- Apollo / Graphql
- Typescript
- React

## How to run

```sh
# Install Prisma
npm i -g @prisma/cli
# Install backend
yarn
# Install frontend
(cd cra && yarn)
# Setup env
mv prisma/.env.copy prisma/.env
# Setup PostgresDB
psql
# Create table
> CREATE DATABASE prismagql;
> \q
# Prisma DB Migrate
npx prisma migrate up --experimental
# Run backend
npm run dev
# Run frontend
(cd cra && npm start)
```