Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skill label #121

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions sync_community_skills/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 4 additions & 0 deletions sync_community_skills/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# testing

- cd `sync_community_skills`
- run `npm start` to get all the `languages` of the `creative-commons` community and displayed it in the `console.log()`
27 changes: 27 additions & 0 deletions sync_community_skills/get-community-skills-and-frameworks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const express = require('express');
const app = express();
const axios = require('axios')
const fs = require('fs');
app.use(express.json());

const result = [];
const jsonObject = {
name: "",
languages: {}
};

axios.get('https://api.github.com/orgs/creativecommons/repos').then((obj) => {
const data = obj.data;
for(const property in data){
// console.log("Hello World")
axios.get(data[property].languages_url).then(async (obj) => {
jsonObject.name=data[property].name
jsonObject.languages = obj.data
console.log(jsonObject)
})
}

}
)
const port = process.env.PORT || 3000;
app.listen(port, () => console.log(`Listening on port ${port}`));
1 change: 1 addition & 0 deletions sync_community_skills/node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

236 changes: 236 additions & 0 deletions sync_community_skills/node_modules/accepts/HISTORY.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions sync_community_skills/node_modules/accepts/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading