Open Source Place (Back-end)
- We want to build a platform which contents open-source projects. You can list all published open-source projects and also you can publish your project too from GitHub.
Want to Contribute?
You have 2 things you can do:
- Either open an issue about a bug, feature request, page, or component,
- Or close an issue, by writing and/or implementing it in your own fork!
⚒️ Build Setup
We use yarn as the package manager
yarn install
yarn start
📙 Features to be added
- TODO
Add your repository with JavaScript
fetch("http://localhost:8080/repository", {
"headers": {
"accept": "application/json, text/plain, */*",
"content-type": "application/json;charset=UTF-8",
},
"referrer": "http://localhost:3000/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "{\"url\":\"https://github.com/expressjs/express\"}",
"method": "POST",
"mode": "cors",
"credentials": "omit"
})
Read issues in any repository
const query = `{
issues(pathname: "/cagatay/lazy/") {
repository_url
title
user {
login
}
created_at
}
}`
fetch(`http://localhost:8080/graphql?query=${query}`).then(res => res.json()).then(console.log)
Linting
Additionally, you can do
yarn run lint
to see formatting errors andyarn run lint:fix
to fix them. Don't worry if you forgot to lint your code! Someone will definitely fix it in another commit for you😃