This repository was made so that I can learn more about socket.io and real-time.
git clone https://github.com/tsuyusk/real-time-notifications
# Go to 'server' folder
cd server
# Install dependencies
yarn
# Create a mongodb database instance with docker
docker run --name name_of_instance -p 5432:5432 -d mongo
# Create a .env file with the same variables than .env.example file and fill them
# Start
yarn dev:server
# Go to web' folder
cd web
# Install dependencies
yarn
# Start
yarn start
# Go to http://localhost:3000
For sending a notification, You have to make a POST request to http://localhost:3333/notification, with the target_name, title and description in the request body
Made with 💜 by tsuyusk