{"id":17877127,"url":"https://github.com/herrjulz/jefe","last_synced_at":"2025-06-15T17:03:37.143Z","repository":{"id":69923599,"uuid":"241063721","full_name":"herrjulz/jefe","owner":"herrjulz","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-30T12:54:04.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T15:14:05.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/herrjulz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-17T09:10:27.000Z","updated_at":"2020-10-30T12:54:06.000Z","dependencies_parsed_at":"2023-05-25T16:45:30.210Z","dependency_job_id":null,"html_url":"https://github.com/herrjulz/jefe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrjulz%2Fjefe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrjulz%2Fjefe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrjulz%2Fjefe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrjulz%2Fjefe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/herrjulz","download_url":"https://codeload.github.com/herrjulz/jefe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246916743,"owners_count":20854511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T11:45:23.946Z","updated_at":"2025-04-03T00:43:12.578Z","avatar_url":"https://github.com/herrjulz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jefe - A place to claim development environments\n\n## Setup\n\n### Requirements\n\n- `mysql` DB\n- [Github OAuth Application](https://github.com/settings/applications/new)\n\n\n### Setup the DB\n\nOnce you have a `MySQL` instance, you can use the `setupdb.sql` script from the `/scripts/sql/` directory to setup the database.\n\nYou will have to configure Jefe with the `DSN` in order to be able to connect to your `MySQL` instance:\n\n```\nJEFE_DSN=user:pass@tcp(host:port)\n```\n\n### Setup an OAuth application\n\nYou'll need to create an [OAuth application on GitHub](https://github.com/settings/applications/new).\n\nThe \"Authorization callback URL\" must be the URL of your Jefe instance with `/oauth/redirect` appended:\n\n`http://\u003cmy.jefe.com\u003e/oauth/redirect`\n\nYou will be given a `Client ID` and a `Client Secret` for your new oauth application. The `client ID` and `secret` must then be configured on Jefe by setting the following env:\n\n```\nJEFE_GITHUB_CLIENT_ID: theClientID\nJEFE_GITHUB_SECRET: theSecret \n```\n\nNext you will need to provide a github organization Jefe will authenticate users against. That way you make sure that only users part of the given organization are authorized to use your Jefe instance.\n\n```\nJEFE_O_AUTH_ORG=my-github-org\n```\n\n### Create a session secret\n\nCreate a  32bit long session key which will be used encrypt and authenticate session data:\n\n```\nJEFE_SESSION_SECRET: mysecret \n```\n\n## Deploy\n\nYou can deploy Jefe as a CloudFoundry application or as a container on any other Platform where you can deploy Golang apps or Containers.\n\n### The CF way\n\n1. `$ cf push jefe --no-start`\n2. `$ cf set-env ENV_VAR \u003cenv-value\u003e`\n3. `$ cf set-env GO_INSTALL_PACKAGE_SPEC github.com/herrjulz/jefe/cmd/web`\n3. Do this for all required environment variables\n4. `$cf start jefe`\n\n### Kubernetes Way\n\nDeploy Eirini on Kubernetes and use the CF way ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherrjulz%2Fjefe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherrjulz%2Fjefe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherrjulz%2Fjefe/lists"}