{"id":13507882,"url":"https://github.com/hexpm/hexpm","last_synced_at":"2025-12-16T19:05:55.973Z","repository":{"id":13634889,"uuid":"16328245","full_name":"hexpm/hexpm","owner":"hexpm","description":"API server and website for Hex","archived":false,"fork":false,"pushed_at":"2025-05-07T10:33:41.000Z","size":17282,"stargazers_count":1097,"open_issues_count":24,"forks_count":285,"subscribers_count":41,"default_branch":"main","last_synced_at":"2025-05-08T01:56:41.221Z","etag":null,"topics":["elixir","hacktoberfest","phoenix"],"latest_commit_sha":null,"homepage":"https://hex.pm","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexpm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-01-28T22:29:21.000Z","updated_at":"2025-05-07T10:33:47.000Z","dependencies_parsed_at":"2023-02-16T21:01:35.978Z","dependency_job_id":"e815f0bf-c4fd-4a50-868d-69d1a85fa45b","html_url":"https://github.com/hexpm/hexpm","commit_stats":{"total_commits":2527,"total_committers":155,"mean_commits":"16.303225806451614","dds":"0.30035615354174916","last_synced_commit":"d6bfdb1ecae7f05b826b252be2e53f6a59da7a38"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexpm%2Fhexpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexpm%2Fhexpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexpm%2Fhexpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexpm%2Fhexpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexpm","download_url":"https://codeload.github.com/hexpm/hexpm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254140745,"owners_count":22021219,"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":["elixir","hacktoberfest","phoenix"],"created_at":"2024-08-01T02:00:41.961Z","updated_at":"2025-12-16T19:05:55.952Z","avatar_url":"https://github.com/hexpm.png","language":"Elixir","funding_links":[],"categories":["Examples and funny stuff","Elixir"],"sub_categories":[],"readme":"# Hexpm\n\n[![CI](https://github.com/hexpm/hexpm/workflows/CI/badge.svg)](https://github.com/hexpm/hexpm/actions?query=workflow%3ACI)\n\nAPI server and website for \u003chttps://hex.pm\u003e.\n\n## Contributing\n\nTo contribute to Hexpm you need to properly set up your development environment.\n\nAlso see the client repository: [hex](https://github.com/hexpm/hex). The client uses `hexpm` for integration tests, so `hexpm` needs to support all versions the client supports. CI ensures that tests are run on all supported versions.\n\n### Setup\n\n1. Run `mix setup` to install dependencies, create and seed database etc\n2. Run `mix test`\n3. Run `iex -S mix phx.server` and visit [http://localhost:4000/](http://localhost:4000/)\n\nAfter this succeeds you should be good to go!\n\nSee [`setup` alias in mix.exs](./mix.exs) and sections below for more information or when you run into issues.\n\n### PostgreSQL Modules And Version\n\nPostgreSQL version should be \u003e= 9.4, as Hexpm uses the `jsonb` type, that is available from PostgreSQL 9.4 onward.\n\nHexpm requires the PostgreSQL modules [pg_trgm](http://www.postgresql.org/docs/9.4/static/pgtrgm.html) and [pgcrypto](http://www.postgresql.org/docs/9.4/static/pgcrypto.html) to be available.\n\nThis is located in the \"postgresql-contrib\" package, however the package name can vary depending on your operating system. If the module is not installed the ecto migrations will fail.\n\n### Database\n\nBy default, Hexpm connects to a localhost PostgreSQL database `hexpm_dev` using the username `postgres` with the password `postgres`.\n\nCreate the database and user 'postgres' if not already done:\n\n```sh\ndocker-compose up -d db\n```\n\nNow you are fine to create the `hexpm_dev` database and run the ecto migrations:\n\n```shell\nmix do ecto.create, ecto.migrate\n```\n\n### Sample Data\n\nUsing the following command you can seed your local Hexpm instance with some sample data:\n\n```shell\nmix run priv/repo/seeds.exs\n```\n\n### Node Dependencies\n\nIt's recommended to enable [Corepack](https://yarnpkg.com/corepack) for a better developer experience:\n\n```shell\ncorepack enable\n```\n\nFor assets compilation we need to install Node dependencies:\n\n```shell\ncd assets \u0026\u0026 yarn install\n```\n\nIf you don't have yarn installed, `cd assets \u0026\u0026 npm install` will work too.\n\n### Running Hexpm\n\nOnce the database is set up you can start Hexpm:\n\n```shell\n# with console\niex -S mix phx.server\n\n# without console\nmix phx.server\n```\n\nHexpm will be available at [http://localhost:4000/](http://localhost:4000/).\n\n## License\n\n    Copyright 2015 Six Colors AB\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexpm%2Fhexpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexpm%2Fhexpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexpm%2Fhexpm/lists"}