Github Repo: https://github.com/Kity2023/6504TheIntelligentWeb
- install MongoDB
- enter code folder and run
npm install - run server and client using
npm start - open URL in browser: http://localhost:3000/
- signup a user and then login
(One of us meet a problem in mongo DB, so we use docker at early development, but later we only run docker of mongo DB and run code locally.)
- Enter code folder:
cd code - Change the Mongo DB host in
/code/databases/connection.js:- change
localhostin line ofconst MongoDB = 'mongodb://localhost:27017/stories,users';toDB
- change
- Build environment and run (may need
sudo):- option A- run in different steps
docker compose builddocker compose up
- option B- build and run together
- require:
/code/db_data/mongo_datais deleted docker compose up --build
- require:
- option A- run in different steps
- Open the browser and enter pages as said before
Swagger service: run the server and then open URL http://localhost:3000/api-docs
- Unsolved bug: There is one bug about Knowledge graph history in the local client. When a user enters the chat room, he will see all knowledge graphs stored in the indexedDB listed.
- Notice: please use different room names for different stories, otherwise the past annotation of the last story in the room will be loaded from cache data.