Merge remote-tracking branch 'origin/main'

This commit is contained in:
slawk0
2024-08-24 12:46:34 +02:00
2 changed files with 12 additions and 3 deletions

8
.env Normal file
View File

@@ -0,0 +1,8 @@
PG_HOST=127.0.0.1
PG_PORT5432
PG_USER=postgres
PG_PASSWORD=suPerStr0ngP@$$word
PG_DATABASE=webchat
SESSION_SECRET=supersecretsessiontoken
JWT_SECRET=supersecretjwttoken
ORIGIN=http://localhost:3000

View File

@@ -10,9 +10,10 @@ Selfhost:
2. **Move to directory**
```bash
cd web-chat
3. **Install dependencies**
3. **Set .env file for your case**
4. **Install dependencies**
```bash
npm i
4. **Run the server**
5. **Run the server**
```bash
node index.js
node index.js