Git Product home page Git Product logo

codstorage's Introduction

codstorage

build standard-readme compliant

Store your git repositories in IPFS, IPLD and commits on Ceramic

Table of Contents

About

This project was created as a project in HackFS 2022.

It started with a simple idea: "what if I could store, and explore, my git repositories in IPFS?" And here we are! I really like IPFS. Content addressed data is a really interesting. You know what you are accessing. You can validate it as you do that. This is very similar to git and how git works. All our code is stored in a tree like structure that can be validated. Files, diffs, everything, is identified by hashes. Why not combine them?

Usage

So. How do you use it? The first question is: "do you know how to use git?". If yes, you will need, checks notes, nothing else, actually. You just add a new remote to your git repo and everything should be good to go:

git remote add codstorage http://codstorage.herokuapp.com/
git push codstorage
remote:
remote: IPFS: QmS5YqjxiXWvy65iRLvYyn6UetCXBuGFe15AxasaiWgrj3
remote: IPLD: bafyreibpnkbznahvi2fjwzq3t2yioqmd4cnk5keon7cup5oc325ksys7lu
remote: IPNS: # todo
remote: CRMC: # todo
remote:

That is it. There is nothing else to it. Just git.

Install

This project relies heavily on Docker and Compose. We use FastAPI as the HTTP server that works as our service. To install everything:

pip install -r requirements.txt

Or build the docker image directly:

docker build . -t codstorage

Usage

To run a local version of this project, just execute:

docker compose up
uvicorn codstorage:app
INFO:     Started server process [12126]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)

Thanks

Quick thanks for good people(s):

  • IPFS: for creating such a cool new technology
  • Git docs: for having a very good documentation for its HTTP backend
  • HackFS: for providing the incentive to implement my idea

codstorage's People

Contributors

meyer1994 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.