-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8635b2c
commit 5e0aabb
Showing
8 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
APP_ENV=local | ||
HOST=localhost | ||
PORT=3000 | ||
SOCKET_PORT=8080 | ||
|
||
#APP_END=production | ||
#SSL_KEY= | ||
#SSL_CERT= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# private-chat | ||
|
||
This is a small application for private chat. 1 Room can only have 2 people inside. | ||
|
||
It uses `express, socket.io, ejs`. | ||
|
||
## How to use | ||
|
||
first of all clone the repo | ||
|
||
`git clone https://github.com/halilcakar/private-chat.git && cd private-chat` | ||
|
||
and then install | ||
|
||
`npm i` | ||
|
||
then you need to copy .env.default to .env. bash script might be differen for you i'm using git bash generally so | ||
|
||
`cp .env.default .env` | ||
|
||
after these steps you can just run | ||
|
||
`npm run dev` or `yarn dev` | ||
|
||
I also added an option for SSL usage, if you have a generated ssl that you can use, you need to set the `SSL_KEY` and `SSL_CERT` parameters on `.env` | ||
|
||
If you set those and make `APP_ENV=production` it will try to run the server on `https`. But for local testing you can just leave `.env` as it is. | ||
|
||
## Thanks to: | ||
[favicon.io](https://favicon.io/) that provides that beautiful favicons. | ||
|
||
|
||
## Some photos :) | ||
<img src="./public/images/1.png"> | ||
<img src="./public/images/2.png"> | ||
<img src="./public/images/3.png"> | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters