{"id":16222932,"url":"https://github.com/michael/hub","last_synced_at":"2025-10-18T15:32:56.959Z","repository":{"id":5347079,"uuid":"6532821","full_name":"michael/hub","owner":"michael","description":"Substance Hub","archived":false,"fork":false,"pushed_at":"2013-09-23T21:35:00.000Z","size":1888,"stargazers_count":6,"open_issues_count":35,"forks_count":0,"subscribers_count":6,"default_branch":"remanufactor","last_synced_at":"2025-03-17T06:51:37.983Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/michael.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}},"created_at":"2012-11-04T16:50:03.000Z","updated_at":"2023-06-03T16:37:15.000Z","dependencies_parsed_at":"2022-08-25T19:42:05.168Z","dependency_job_id":null,"html_url":"https://github.com/michael/hub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael%2Fhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael%2Fhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael%2Fhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael%2Fhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael","download_url":"https://codeload.github.com/michael/hub/tar.gz/refs/heads/remanufactor","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244417030,"owners_count":20449383,"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":[],"created_at":"2024-10-10T12:16:02.629Z","updated_at":"2025-10-18T15:32:56.846Z","avatar_url":"https://github.com/michael.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Substance Hub\n===\n\nWe're using OSX for development, but this setup should work on Linux too. At least for the hub.\n\n## Prerequisites\n\n\n- Node.js 0.8.x\n- Redis 2.6.x\n- Postgres 9.2.x\n- PCRE (`sudo port install pcre`)\n- Automake (really?) (`sudo port install automake`)\n- Autoconf (`sudo port install autoconf`)\n\n\n## Setup Dev Environment\n\nClone the Substance Mothership\n\n```bash\n$ git clone https://github.com/michael/substance.git\n```\n\nExecute the Substance update script. It sets up the whole environment\n\n```bash\n$ cd substance\n$ ./update.sh -c # performs a clean build\n```\n\nNavigate to the Hub Repository\n\n```bash\n$ cd hub\n```\n\n## Setup Database Environment\n\nInitialize your Postgres Database by executing:\n\n```bash\n$ psql postgres -p 5432 -h localhost -f postgres.init\n```\n\nOn Ubuntu, after installing postgres the command is\n\n```bash\n$ sudo -u postgres psql postgres -f postgres.init\n```\n\nPut this into your `~/.profile` and adapt to your needs:\n\n```bash\nexport SUBSTANCE_PRODUCTION_POSTGRES_CONN=\"postgres://substance:substance@localhost:5432/substance\"\nexport SUBSTANCE_DEVELOPMENT_POSTGRES_CONN=\"postgres://substance:substance@localhost:5432/substance_development\"\nexport SUBSTANCE_TEST_POSTGRES_CONN=\"postgres://substance:substance@localhost:5432/substance_test\"\n\nexport SUBSTANCE_PRODUCTION_REDIS_CONF=\"$HOME/substance_production_redis.conf\"\nexport SUBSTANCE_DEVELOPMENT_REDIS_CONF=\"$HOME/substance_development_redis.conf\"\nexport SUBSTANCE_TEST_REDIS_CONF=\"$HOME/substance_test_redis.conf\"\n```\n\nPlease use the following ports for your Redis configurations:\n\n- Port 6390 - Production\n- Port 6391 - Development\n- Port 6392 - Test\n\n\n## Start the hub\n\n```bash\n./start.sh -d -s # Start in development env and apply default seed\n```\n\n### Setup Redis\n\nStart redis (by using the redis.conf in the repository, it uses port 6380 for the docstore)\n\n```bash\nlocalhost:hub michael $ redis-server redis.conf\n```\n\n## Run the tests\n\n1. Start the Hub in Test Mode\n\n   ```bash\n   ./start.sh -t\n   ```\n\n2. Start the Composer (`composer/build/app/osx/Substance.app`) and press `ctrl + alt + t`\n\n   Now playing around with the test suite should be self-explanatory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael%2Fhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael%2Fhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael%2Fhub/lists"}