Use github username in login page to get your repositories.
- NodeJS
- Cron - cron command-line utility is a job scheduler on Unix-like operating systems. Users who set up and maintain software environments use cron to schedule jobs, also known as cron jobs, to run periodically at fixed times, dates, or intervals.
# start redis
sudo service redis-server start
# start server
npm start or npm run start:dev in development
# start cron
npm start
# start server
npm start
Install Postman
HTTP route prefix : http://localhost:3000/
Route | Method | Description |
---|---|---|
/user/login | post | to get access token |
Route | Method | Description |
---|---|---|
/post/getRepo | GET | read repo (Authentication needed) |
{
"username" : "uk0724",
"password" : "*****"
}
{
"access_token" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ik5hcmF5YW5AZ21haWwuY29tIiwiaWF0IjoxNjUzODg3NjExLCJleHAiOjE2NTM4ODgyMTF9.GdZBS5LbxPllp-osTSYz6CURZC3eH3a8p7kn0Hx18JE"
}
BEARER TOKEN in authorization header
Repo details will be fetched after logingin
{
{
[
{
"id": "400062373",
"username": "uk0724",
"repo_name": "lab-cricpro-scoreboard"
}
]
}
}
'