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
- Host: GitHub
- URL: https://github.com/lasse-tom-lang/nodejs-chat-app
- Owner: Lasse-Tom-Lang
- License: mit
- Created: 2022-07-17T15:24:40.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-25T14:47:09.000Z (about 3 years ago)
- Last Synced: 2025-02-06T22:42:33.164Z (over 1 year ago)
- Topics: chat-app, docker, mysql, nodejs, prisma, realtime-messaging, socket-io
- Language: TypeScript
- Homepage:
- Size: 6.77 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node.js chat app

# 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.