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..93fb21e --- /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/ujLUe1Hgd_Q/0.jpg)](https://youtu.be/ujLUe1Hgd_Q) + + + +## 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/ujLUe1Hgd_Q. +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