MMMM MMMM OOOOOO RRRRRR UU UU KK KK SSSSSS
MM MM MM MM OO OO RR RR UU UU KK KK SS
MM MM MM MM OO OO RR RR UU UU KK KK SS
MM MMMM MM OO OO RR RRRR UU UU KK KK SSSS
MM MMMM MM OO OO RR RR UU UU KK KK SS
MM MM OO OO RR RR UU UU KK KK SS
MM MM OOOOOO RR RR UUUUU KK KK SSSSSS
./mongo-data/db
Im MongoDB bin-Verzeichnis (z.B. /MongoDB/Server/3.4/bin) eingeben:
mongod --dbpath (Pfad zum Projekt MoruksNoSQL)\mongo_data\db
In (pfad zu rabbitMQ-Installation)/RabbitMQ Server/rabbitmq_server-3.6.14/sbin
ausführen: rabbitmq-server
Node installieren: https://nodejs.org/en/
MongoDB: npm install mongodb --save
rabbitMQ: npm install amqplib
Nodemon: npm install nodemon
cd Pfad zum Projekt MoruksNoSQL/Chatssystem-Backend && npm install
Backend ist nach Start unter Port: 3000 erreichbar z. B. http://localhost:3000
cd Pfad zum Projekt MoruksNoSQL/Chatssystem-Backend && npm start
Message an Backend senden:
**/MoruksNoSQL/node_modules new_task.js <arg>
Argument wird an Server gesendet
**/MoruksNoSQL/morukChat/npm install ausführen
**/MoruksNoSQL/morukChat/ng serve
In der app.js werden die Gruppen Chats angelegt => Exchange, Queues und die Collections z. B. "inanbayram-Default"
http://localhost:3000/history/:username/:chatname
Eingeloggte Benutzer "inanbayram" ruft die Historie von der Privatchat mit "steffen" ab
http://localhost:3000/history/inanbayram/steffen
http://localhost:3000/history/:username/
Rufe die Chatliste von user "inanbayram". Hier werden alle aktiven Chats aufgelistet (Gruppen und Private)
http://localhost:3000/chats/inanbayram
http://localhost:3000/chats
Angemeldete Benutzer "inanbayram" erstellt eine Chat mit "steffen"
{
"owner": "inanbayram",
"participant": "steffen"
}
http://localhost:3000/users
http://localhost:3000/users/:username
Informationen von Benutzer "inanbayram" abfragen
http://localhost:3000/users/inan
http://localhost:3000/users/login
{
username: "inanbayram",
password: "SHA256 gehashte Password"
}
http://localhost:3000/users
{
"firstname": "Inan",
"lastname": "Bayram",
"username": "inanbayram"
"password": "12ahsdk18asdjkas"
}
--> in das Installations-Verzeichnis von RabbitMQ gehen
cd rabbitmq-3.6.14
Befehl für das Starten des RabbitMQ-Servers:
brew services start rabbitmq
Wenn RabbitMQ oder MongoDB mit Homebrew installiert wurden
(brew install rabbitmq/ brew install mongodb)
dann liegen die Installationsdateien im Homebrew-Verzeichnis
als tar.gz - Dateien. Um diese zu entpacken, hilft der folgende Befehl:
gunzip -c rabbitmq-3.6.14.tar.xz | tar xopf -
Bzw.: gunzip -c mongodb-3.4.10.high_sierra.bottle.tar.gz | tar xopf -