Alwayne Bailey
[email protected]
Kasper Pawlowski
HOW TO RUN OUR CHAT APPLICATION:
- install the dependencies in both 'backend' and 'frontend' folders by using the following command in each of them: npm install
- run applications in both folders by using the following command in each of them:
npm start
from root - open the browser and go to
http://localhost:3000/
!
As MongoDB server is cloud hosted, to check events and chat history do the following:
- open MongoDB Compass app
- choose 'connect to' option
- paste the following connection string:
mongodb+srv://baileyalo:[email protected]/test
- upon successful connection choose AlkaspChat database
- check Events and History collections
Required queries were written in separate files that can be found in folder 'server/queries'.
To run them use the following command:
node .\queries\retrieveEventLogs.js
node .\queries\retrieveChatHistory.js [-u user] [-r room]
retrieveEventLogs.js returns to the console all the event logs retrieveChatHistory.js returns to the console all chat history according to the given parameters. Both of them are optional.
i.e.
node .\server\queries\retrieveChatHistory.js -u kasper
returns chat history from user kasper
or
node .\server\queries\retrieveChatHistory.js -u Alwayne -r Developers
returns chat history from user Alwayne in chat Developers
- MongoDB
- Express Js
- React
- Node Js