Skip to content

flyerdine/realtime-service

Repository files navigation

Real time service built with ExpressJS

Realtime service built on NodeJS.

Tech Stack

  • Node.js 16
  • NPM Libraries
    • Nodemon for Debugging and keeping track of changed files
    • Express for initiating the server
    • BodyParser to parse request body

Walkthrough

Set-up Docker (Recommended)

docker compose -f "docker-compose.yml" up -d --build

Starting the API Server

nodemon app.js

OR

npm run start

Create a pub post

curl -X POST \
  http://localhost:3000/orders \
  -H 'Accept: */*' \
  -H 'Accept-Encoding: *' \
  -H 'Content-Type: application/json' \
  -H 'Host: localhost:3000' \
  -d '{
	"order_id" : 1,
    ...
}'

Create a sub post

curl -X GET \
  http://localhost:3000/orders \
  -H 'Accept: */*' \
  -H 'Accept-Encoding: *' \
  -H 'Content-Type: application/json'

About

Real time service built on Redis Pub/Sub & ExpressJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •