Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

42Charts/42-api-aggregator

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-API-AGGREGATOR

📡 42 API AGGREGATOR scrape 42 api school into a mysql DB with only usefull informations using nodejs & gruntjs

See tables

Getting started

(node & grunt)

  • Install nodejs and make sure npm is in your PATH
  • Install grunt $> npm install -g grunt-cli

(project & node_modules)

$> git clone https://github.com/yfuks/42-API-AGGREGATOR.git && cd 42-API-AGGREGATOR && npm i

Create a new app on 42 Intranet

(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 scripts or grunt

note: not all tasks are in the prompt, to see all available tasks run grunt --help to run a specific tasks you can run grunt init-database where grunt specific-task

License

MIT

About

📡 An aggregator of 42 school API written in node js used for 42charts

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.