Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 1.63 KB

README.md

File metadata and controls

68 lines (49 loc) · 1.63 KB

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:

  1. Either open an issue about a bug, feature request, page, or component,
  2. 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 and yarn 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 😃