https://github.com/anthonycorletti/modal-git-service
Host your own git service on Modal with stateless RPC
https://github.com/anthonycorletti/modal-git-service
git modal python
Last synced: 9 months ago
JSON representation
Host your own git service on Modal with stateless RPC
- Host: GitHub
- URL: https://github.com/anthonycorletti/modal-git-service
- Owner: anthonycorletti
- Created: 2024-09-24T21:05:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T20:01:57.000Z (over 1 year ago)
- Last Synced: 2025-04-16T01:54:58.575Z (about 1 year ago)
- Topics: git, modal, python
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-modal - modal-git-service
README
# modal-git-service
Host your own git service on [Modal](modal.com) with stateless RPC. It's like GitHub... with more cowbell.
> [!WARNING]
> This is meant for demo and learning purposes. Do not use this in production.
This project uses `uv` to install and manage dependencies, so make sure you have `uv` installed.
## Try it out
Clone this repo and deploy to modal like so:
```sh
git clone https://github.com/anthonycorletti/modal-git-service.git && cd modal-git-service
bin/install
bin/deploy-modal
```
Grab the url of your deployed service. It should be something like `https://PROFILENAME--git-on-modal.modal.run`.
Push some code to your service
```sh
mkdir repo && cd repo
echo "# hello world" > README.md
git init
git add -A
git commit -m "initial commit"
git remote add origin https://PROFILENAME--git-on-modal.modal.run/owner/repo.git
git push -u origin main
```
And clone it down
```sh
git clone https://PROFILENAME--git-on-modal.modal.run/owner/repo.git repo-clone
```
There you have it! Your own little git service.