-
Connect to MongoDB using this URI: mongodb://localhost:27017/keyvaluestore
-
Go to this repositories location using: cd "websockets" / filePath in your local.
-
Inside this folder run "nodemon" to start the server.
-
Create a websocket request with postman and enter this url: ws://localhost:8080 Click on connect and client messages will be sent.
-
For sending messages from websocket server add json data in the Messages section in postman(data.json file is attached in this repo you can copy that and paste it in Messages section) Click on send.
-
The sent Message will be saved in DB in Messages Collection.
-
For http GET api response add import data.json file in your MongoDB KeyValue collection.
-
Go to postman and enter this URL: http://localhost:3000/api/Ishika Click on send and you can see the value as response.
-
Notifications
You must be signed in to change notification settings - Fork 2
IshikaT21/MediaMonks
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published