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

https://github.com/lasse-tom-lang/nodejs-chat-app

Realtime node.js socket.io chat app
https://github.com/lasse-tom-lang/nodejs-chat-app

chat-app docker mysql nodejs prisma realtime-messaging socket-io

Last synced: 2 months ago
JSON representation

Realtime node.js socket.io chat app

Awesome Lists containing this project

README

          

# node.js chat app

![Image](./docs/exampleImage.png)

# Setup

## Manual

### Server
First, run `npm install` in the server directory.
Then you can start the server by running `node .` in the server directory.

### Database
You have to run a database like MySQL.
Then configure a `.env` file in the server directory by following the `.env.example` file.
If you are not using MySQL and a database called db, change this
```
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
```
in `/server/prisma/schema.prisma`.
Then run `npx prisma migrate dev` and `npx prisma generate` in the server directory.

---

## Docker

You can also just run `docker-compose up` in the main directory, if you have installed Docker.