From cc8f2fbe2ea5a3c994c72341f7b8a3f075892254 Mon Sep 17 00:00:00 2001 From: learnwithsumit Date: Sat, 29 May 2021 00:51:57 +0600 Subject: [PATCH 1/2] added .env.example and README.md file --- .env.example | 4 ++++ README.md | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 .env.example create mode 100644 README.md diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..01c2b4d --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +APP_NAME=Chat Application +PORT=5000 +MONGO_CONNECTION_STRING=mongodb://localhost/chat +COOKIE_SECRET=learnwithsumitsecret \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..4b611a5 --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +[![Youtube][youtube-shield]][youtube-url] +[![Facebook][facebook-shield]][facebook-url] +[![Instagram][instagram-shield]][instagram-url] +[![LinkedIn][linkedin-shield]][linkedin-url] + +
+

+

Lesson - 2 - Node.js Chat Application in Express.js, MongoDB & EJS template engine

+ +A complete guide on SASS described in Bangla. Please check the video tutorial here - + +[![View on Youtube](http://img.youtube.com/vi/N3vG6Yt-e6k/0.jpg)](https://youtu.be/N3vG6Yt-e6k) + + + +## Table of Contents + +- [How to run](#how-to-run) +- [Contact](#contact) + + + +## How to run + +Please follow the below instructions to run this project in your machine: + +1. Clone this repository + ```sh + git clone https://github.com/learnwithsumit/chat-application.git + ``` +2. Watch the youtube tutorial on this topic - https://youtu.be/N3vG6Yt-e6k. +3. Check out to lesson-2 branch with the below command + ```sh + git checkout lesson-2 + ``` +4. Run npm install +5. Then rename the .env.example file to ".env" and change values as per your need +6. Finally run the application in development using below command - + ```sh + npm start + ``` + or + You can run it in production mode by - + ```sh + npm run prod + ``` + + + +## Contact + +Sumit Saha - [sumit@learnwithsumit.com](mailto:sumit@learnwithsumit.com) + +Project Link: [https://github.com/learnwithsumit/chat-application](https://github.com/learnwithsumit/chat-application) + +Youtube Channel: [https://youtube.com/LearnwithSumit](https://youtube.com/LearnwithSumit) + + + +[youtube-shield]: https://img.shields.io/badge/-Youtube-black.svg?style=flat-square&logo=youtube&color=555&logoColor=white +[youtube-url]: https://youtube.com/LearnwithSumit +[facebook-shield]: https://img.shields.io/badge/-Facebook-black.svg?style=flat-square&logo=facebook&color=555&logoColor=white +[facebook-url]: https://facebook.com/letslearnwithsumit +[instagram-shield]: https://img.shields.io/badge/-Instagram-black.svg?style=flat-square&logo=instagram&color=555&logoColor=white +[instagram-url]: https://instagram.com/learnwithsumit +[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555 +[linkedin-url]: https://linkedin.com/company/learnwithsumit From f1dd728adb39ce4a237bcf1aea13782fb8a45f33 Mon Sep 17 00:00:00 2001 From: Learn with Sumit <73503432+learnwithsumit@users.noreply.github.com> Date: Thu, 3 Jun 2021 07:54:20 +0600 Subject: [PATCH 2/2] Update README.md Updated thumbnail in Readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b611a5..93fb21e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A complete guide on SASS described in Bangla. Please check the video tutorial here - -[![View on Youtube](http://img.youtube.com/vi/N3vG6Yt-e6k/0.jpg)](https://youtu.be/N3vG6Yt-e6k) +[![View on Youtube](http://img.youtube.com/vi/ujLUe1Hgd_Q/0.jpg)](https://youtu.be/ujLUe1Hgd_Q) @@ -28,7 +28,7 @@ Please follow the below instructions to run this project in your machine: ```sh git clone https://github.com/learnwithsumit/chat-application.git ``` -2. Watch the youtube tutorial on this topic - https://youtu.be/N3vG6Yt-e6k. +2. Watch the youtube tutorial on this topic - https://youtu.be/ujLUe1Hgd_Q. 3. Check out to lesson-2 branch with the below command ```sh git checkout lesson-2