{"id":17540723,"url":"https://github.com/dab0mb/hotncold-server","last_synced_at":"2025-09-12T20:32:12.833Z","repository":{"id":66209438,"uuid":"208612534","full_name":"DAB0mB/HotnCold-server","owner":"DAB0mB","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-28T12:12:41.000Z","size":565,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T08:23:46.888Z","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/DAB0mB.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":"2019-09-15T15:13:54.000Z","updated_at":"2024-10-05T16:01:02.000Z","dependencies_parsed_at":"2024-02-22T04:00:23.667Z","dependency_job_id":null,"html_url":"https://github.com/DAB0mB/HotnCold-server","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/DAB0mB/HotnCold-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAB0mB%2FHotnCold-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAB0mB%2FHotnCold-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAB0mB%2FHotnCold-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAB0mB%2FHotnCold-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DAB0mB","download_url":"https://codeload.github.com/DAB0mB/HotnCold-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAB0mB%2FHotnCold-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274873280,"owners_count":25365823,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-20T22:52:34.411Z","updated_at":"2025-09-12T20:32:12.547Z","avatar_url":"https://github.com/DAB0mB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hot\u0026Cold (Server)\n\nThe backend for the social app [Hot\u0026Cold](https://github.com/DAB0mB/HotnCold).\n\n## Setup\n\nConfigure the following services:\n\n- [Heroku](https://heroku.com/).\n- [MapBox](https://www.mapbox.com/).\n- [Cloudinary](https://cloudinary.com/).\n- [PostgesSQL](https://www.postgresql.org/).\n- [Twilio](https://www.twilio.com/).\n\nYou will need to add [PostGIS](https://postgis.net/install/) extension to PostgresSQL to enable geo spatial indexing and querying. On Heroku, the extension is already installed out of the box and you only need to enable it with `CREATE EXTENSION postgis;` (See [reference](https://devcenter.heroku.com/articles/postgis)).\n\nDefine environment variables in `.env` file (NEVER COMMIT):\n\n    # Cloudinary API URL\n    CLOUDINARY_URL\n    # Database URL, template:\n    # postgres://user:password@host:port/dbname\n    DATABASE_URL\n    # Access token given by MapBox's API\n    MAPBOX_ACCESS_TOKEN\n    # Auth secret for JWT\n    AUTH_SECRET\n    # Twilio account SID\n    TWILIO_ACCOUNT_SID\n    # Twilio auth token\n    TWILIO_AUTH_TOKEN\n    # Skip SMS messaging\n    TWILIO_SKIP\n    # One time passcode timeout in milliseconds\n    OTP_TIMEOUT\n    # Firebase-admin related credentials. See https://firebase.google.com/docs/reference/admin/node/admin.credential\n    FIREBASE_PROJECT_ID\n    FIREBASE_CLIENT_EMAIL\n    FIREBASE_PRIVATE_KEY\n    FIREBASE_DB_URL\n    # How long a status chat is gonna live once created\n    STATUS_TTL\n    # How long will authentication token last (in seconds)\n    AUTH_TTL\n    # An extra margin to subtract from queries which run against the status expiration date (ms). Higher value will result in more statuses.\n    STATUS_EXPR_MARGIN\n    # *Optional: Server port. Defaults to 8000\n    PORT\n    # *Optional: Server host. Defaults to 0.0.0.0\n    HOST\n\nAlternatively, you can define these variables in Heroku's dashboard.\n\nInstall dependencies:\n\n    $ yarn\n\nIn a new environment, migrate DB schema changes:\n\n    $ yarn migrate\n\nBe sure to [define a polygon of your city of choice](https://github.com/DAB0mB/HotnCold-server/blob/master/src/seeders/20191122123942-create-areas.js) if you want it to be supported in the app.\n\n## Dev\n\nStart the API:\n\n    $ yarn start\n\n## Test\n\nTo create test-data you can use the run seeder files in `src/seeders`:\n\n    $ yarn sequelize db:seed --seed \u003cfilename\u003e\n\n## Prod\n\nPush to Heroku and pray:\n\n    $ git push heroku master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdab0mb%2Fhotncold-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdab0mb%2Fhotncold-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdab0mb%2Fhotncold-server/lists"}