An instant messaging app that delivers your messages as fast as Hermes
For more details documentation, please go here.
Client
send username and password toAuth
to get a jwt. Now it can access to resource inAPI
using that jwt.Client
send a request toAuth
to get another jwt token to authenticate withSocket
. In this request, the jwt in step 1 will be put in the header. So only authenticated user can send this request.Client
send a request toSocket
to make a socket connection between client and socket server, using token acquired in step 2. TheSocket
need to contact withAuth
to verify that the token sent byClient
is valid.
- sudo docker-compose up -d
Wait about 2 minutes, kafka takes time to get ready
-
cd client npm run dev
-
cd auth npm run start:dev
-
cd api npm run start:dev
-
cd shipping go run .
-
cd socket go run .
go to localhost:3000