{"id":21351991,"url":"https://github.com/td99/code-share","last_synced_at":"2026-04-11T18:07:47.256Z","repository":{"id":192253878,"uuid":"617988077","full_name":"TD99/code-share","owner":"TD99","description":"A Docker / Kubernetes Web App that helps you share code with your colleagues. ⚡","archived":false,"fork":false,"pushed_at":"2023-09-02T19:46:37.000Z","size":11627,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T17:13:58.259Z","etag":null,"topics":["alpine","containerization","css","docker","html","javascript","kubernetes","microk8s","mysql","php"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TD99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-23T14:23:10.000Z","updated_at":"2024-09-11T18:45:50.000Z","dependencies_parsed_at":"2023-09-03T19:13:58.371Z","dependency_job_id":null,"html_url":"https://github.com/TD99/code-share","commit_stats":null,"previous_names":["td99/code-share"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TD99%2Fcode-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TD99%2Fcode-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TD99%2Fcode-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TD99%2Fcode-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TD99","download_url":"https://codeload.github.com/TD99/code-share/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826786,"owners_count":20354220,"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":["alpine","containerization","css","docker","html","javascript","kubernetes","microk8s","mysql","php"],"created_at":"2024-11-22T03:12:12.540Z","updated_at":"2026-04-11T18:07:47.218Z","avatar_url":"https://github.com/TD99.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  CodeShare\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eA Docker / Kubernetes Web App that helps you share code with your colleagues really fast. ⚡\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/TD99/code-share?style=for-the-badge\" alt=\"License\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/last-commit/TD99/code-share?style=for-the-badge\" alt=\"Last Commit\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#docker\"\u003eDocker\u003c/a\u003e •\n  \u003ca href=\"#kubernetes\"\u003eKubernetes\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eTitle Screen\u003c/th\u003e\n      \u003cth\u003eEditor\u003c/th\u003e\n      \u003cth\u003eViewer (shared)\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cimg src=\".assets/cs-1.png\" alt=\"App UI 1\"\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cimg src=\".assets/cs-2.png\" alt=\"App UI 2\"\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cimg src=\".assets/cs-3.png\" alt=\"App UI 3\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n# Demo\nA demo can be found on [https://tcraft.link/codesh](https://tcraft.link/codesh).\n\n# Deployment\n## Docker\n### Prerequisites\nBefore you start, you'll need to make sure you have the following installed:\n- Docker\n- Docker Compose\n\n### Step 1: Clone the Repository\nFirst, clone the CodeShare repository from GitHub:\n```git clone https://github.com/TD99/code-share.git```  \n\n### Step 2: Navigate to the Repo-Directory (cd)\n\n### Step 3: Start the Application\nTo start the CodeShare application, run the following command:\n```docker-compose up -d```  \nThis will start the application in detached mode, which means it will continue to run in the background even after you close the terminal.\n\n### Step 4: Access the Application\nOnce the application is running, you can access it in your web browser at [http://localhost:80](http://localhost:80).\n\n### Step 5 (optional): Change the Config File\nFor production, it's important to change the Usernames and Passwords for the DB. Change them in `docker-compose.yaml` (both MySQL and PHP environment).\n\n## Kubernetes\n### Prerequisites\n- Kubernetes (microk8s)\n- Ingress\n\n### Step 1: Clone the Repository\nFirst, clone the CodeShare repository from GitHub:\n```git clone https://github.com/TD99/code-share.git```  \n\n### Step 2: Navigate to the Repo-Directory (cd)\n\n### Step 3: Deploy the Application\nTo deploy the CodeShare application, run the following command:\n```sudo microk8s kubectl apply -f ./kubernetes.yaml```  \n\n### Step 4: Access the Application\nOnce the application is deployed, you can access it in your web browser by using the ClusterIP address of the Nginx service. To find the IP address, run the following command:\n```sudo microk8s kubectl get services -n codeshare```  \nThis will display the IP address (column: CLUSTERIP) of the Nginx service. You can then access the application in your web browser by using the IP address.\n\n#### Ingress\nIngress is not working properly with Nginx at the moment. It is currently resulting HTTP 504 Errors. I will be working on this in the future.\n\n**If you still want to use Ingress**  \nEdit the \"Hosts\" file (on Linux: `/etc/hosts`) and add the following lines:\n```\n...\n127.0.0.1    codeshare.local\n...\n```\nThe CodeShare-Website should now be reachable at [http://codeshare.local:80](http://codeshare.local:80).\n\n### Step 5 (optional): Change the Config File\nFor production, it's important to change the Usernames and Passwords for the DB. Change them in `kubernetes.yaml` (both MySQL and PHP environment). You can also change the number or replicas. The fields are marked with comments.\n\n### Delete CodeShare\nThe following command will delete the `codeshare` namespace and all the resources associated with it:\n```sudo microk8s kubectl delete namespace codeshare```  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftd99%2Fcode-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftd99%2Fcode-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftd99%2Fcode-share/lists"}