This application is built with Strapi and is using socket.io library for instant communication between the client and server. It contains the backend logic for starpi-chat-ui
repo.
This application is deployed on Heroku. Here is the link for you to play around.
-
Install Nodejs
-
Install MongoDB
-
Fork and clone the repo
git clone git@github.com:strapi-blog/strapi-chat-ui.git
. Follow these steps to run the server. -
Fork and clone the repo
git clone git@github.com:strapi-blog/strapi-chat-backend.git
-
Install dependencies by running
npm install
-
- Create an
.env
file and createDATABASE_URI
variable with mongodb url.
DATABASE_URI=mongodb://localhost:27017/strapi-socket-backend
- Go to
/config/database.js
file, change ssl tofalse
- Start the strapi server
npm start
- Create an
-
-
Follow this tutorial to create your mongodb atlas account and create your first collection.
-
Change your
DATABASE_URI
url which mongodb atlas provides inside.env
file -
Change
ssl
value to true -
Run your server
npm start
-
If you have any questions/suggestions, reach out to me on my email purnimaguptapccs@gmail.com