Skip to content

henricker/TGL-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TGL API

How to run the project?

npm i
npm run build
In this .env file enter the database and email service data
docker-compose up
Now everything is running!

Database logic diagram

About the project

  • The API has two types of users, common users and administrators.
  • Both administrators and users must be authenticated to perform their duties.
  • The function of ADMS is to check all users, promote, demote new administrators and create and manage lottery games
  • Users can create and manage their bets, change their data and delete the account
  • Routes to view games, create new users and "forgot my password" do not require authentication
  • A scheduler was created where every 9:00 of each day an email will be sent inviting users who have not bet in the last seven days to bet

Adding kafka and an email microservice

Added task system running

  • When the user has not placed a bet in the last seven days or has never placed a bet, every day at 9:00 AM an email would be sent inviting the user to bet
  • Every day at 17:00 an email is sent containing a report of the bets placed on that day.
  • Every Friday an email is sent containing a report of the bets made during the week.
  • Every 30th of the holiday month an email is sent containing a report of the bets made in the month

Email templates

  • When the user is created, a welcome email is sent:

  • When a user places a new bet, an email is sent showing that he has placed a bet and the total value of the bets

  • When a user has not bet in the last seven days, every 9:00 AM an email will be sent inviting them to bet.

  • When the user requests a password recovery

Additional Information

  • API developed in LabLuby by LubySofware!

About

REST API of a lottery game system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages