Skip to content

Latest commit

ย 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

42-API-AGGREGATOR-CRON

๐Ÿ“… 42 API AGGREGATOR CRON update a mysql database previously created with 42-API-AGGREGATOR using nodejs and cron

Getting started

(node)

  • Install nodejs and make sure npm is in your PATH

(project & node_modules)

$> git clone https://github.com/42Charts/42-api-aggregator-cron.git && cd 42-api-aggregator-cron && npm i

(Environments variables)

In the project root $> touch .env

then in your file add the following keys

DB_HOST=localhost
DB_USER=root
DB_PASSWORD=
DB_NAME=myDB
FT_API_ENDPOINT=https://api.intra.42.fr
FT_API_UID=MY_APP_UID
FT_API_SECRET=MY_APP_SECRET
FT_API_RATE_LIMIT_PER_SECOND=1.8
FT_API_RATE_LIMIT_PER_HOUR=1200

(Start)

$> npm run start

License

MIT

About

๐Ÿ“… 42 API AGGREGATOR CRON update a mysql database previously created with 42-API-AGGREGATOR (used for 42Charts)

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages