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
- Host: GitHub
- URL: https://github.com/sofakingworld/mini_hex
- Owner: sofakingworld
- Created: 2018-03-01T13:32:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T18:50:35.000Z (over 8 years ago)
- Last Synced: 2025-03-04T08:16:36.324Z (over 1 year ago)
- Language: Elixir
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MiniHex
[](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