Skip to content

monterxto/Semantix-project-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About the Application

Used the clean architecture in the applications, trying to decouple the layers as much as possible. The cronjob application is the scheduler when scheduling a task you can use these options:

body: {
  name: string;
  job: string;
  repeat?: {
      cron: string;
      startAt?: string(IsoDateFormat);
      endAt?: string(IsoDateFormat);
      limit?: number;
    };
  delay?: string;
  data?: any;
}

The cron field is the crontab format, the job field has two options (it can be easily extended) of tasks the UsersSemantixToDb that takes all the users of the api and saves in the database, and the CreateReportsToGofile task that takes all database users, transform it into a csv file and upload it to the go file api.

I kept the .env file for easier testing

If you have any questions I'm at your disposal =D

Start Application

I'm using docker compose to start the application together with mongodb.
To start the application use:
docker-compose up -d

Postman Documentation

Documentation online

Postman collection

Collection online

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published