An open API service indexing awesome lists of open source software.

https://github.com/sofakingworld/mini_hex

Work in progress: A minimal Hex Repository
https://github.com/sofakingworld/mini_hex

Last synced: 12 months ago
JSON representation

Work in progress: A minimal Hex Repository

Awesome Lists containing this project

README

          

# MiniHex

[![Build Status](https://travis-ci.org/SofaKing18/mini_hex.svg?branch=master)](https://travis-ci.org/SofaKing18/mini_hex)

**Work in progresss**: A minimal Hex Repository. See: https://github.com/hexpm/specifications/blob/master/endpoints.md#repository

## Usage

# use latest Hex client (v0.17+)
mix local.hex --force

# Start server
cd /path/to/mini_hex
iex -S mix

# Publish package (from iex session)
:ok = MiniHex.Repository.publish(File.read!("test/fixtures/foo-0.1.0/foo-0.1.0.tar"))

# Add mini_hex repo
mix hex.repo add mini_hex http://localhost:4000

# resolve foo
cd test/fixtures/bar-0.1.0
mix deps.get

## Alternative Storage

set WebDav storage:

# config.exs

config :mini_hex, data_dir: "tmp/data"

config :mini_hex,
storage: :dav,
wed_dav:
[
host: "http://localhost:8888/",
user: "test",
password: "test"
]

## License

MIT