{"id":19871776,"url":"https://github.com/hhimanshu/contactz","last_synced_at":"2026-04-08T16:02:30.357Z","repository":{"id":82584260,"uuid":"104521639","full_name":"hhimanshu/contactz","owner":"hhimanshu","description":"A NodeJS based RESTful API server with Database Migrations","archived":false,"fork":false,"pushed_at":"2017-10-02T02:00:03.000Z","size":361,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T17:22:56.773Z","etag":null,"topics":["docker","expressjs","nodejs","postgresql","sequelize-orm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hhimanshu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-09-22T21:49:25.000Z","updated_at":"2017-10-02T17:01:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e111e72-afe3-412f-886d-0074ac4cb351","html_url":"https://github.com/hhimanshu/contactz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hhimanshu/contactz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhimanshu%2Fcontactz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhimanshu%2Fcontactz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhimanshu%2Fcontactz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhimanshu%2Fcontactz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhimanshu","download_url":"https://codeload.github.com/hhimanshu/contactz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhimanshu%2Fcontactz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","expressjs","nodejs","postgresql","sequelize-orm"],"created_at":"2024-11-12T16:13:24.473Z","updated_at":"2026-04-08T16:02:30.340Z","avatar_url":"https://github.com/hhimanshu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Contactzz  [![Build Status](https://travis-ci.org/hhimanshu/contactz.svg?branch=master)](https://travis-ci.org/hhimanshu/contactz)\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n### Technologies used\n- NodeJS\n- ExpressJS\n- Sequelize (for DB Migrations)\n- Docker (for PostgreSQL container) or SQLite (for no database installation. This is default mode)\n\n### Pre-requisites\n- Install NodeJS\n- Install Docker (or PostgreSQL on your machine)\n\n### Setup PostgreSQL container\n```bash\ndocker run --name contact-db -e POSTGRES_PASSWORD=contactdb -d postgres\n```\nTo access PostgreSQL  \n```bash\ndocker exec -it contact-db bash\npsql -U postgres -W \n(enter password as contactdb)\n```\n  \n### How to run\nCheckout the codebase \n```bash\ngit checkout https://github.com/hhimanshu/contactz\ncd contactz\n```\nInstall Dependencies\n```bash\nnpm install\n```\n\nRun the DB migrations (local - PostgreSQL)\n```bash\nnode_modules/.bin/sequelize db:create\nnode_modules/.bin/sequelize db:migrate\nnode_modules/.bin/sequelize db:seed:all\n```\nRun the DB migrations (local - SQLite)\n```bash\n# if you want to start from scratch\nrm -rf db.development.sqlite;  \n\n# run regardless\nnode_modules/.bin/sequelize db:migrate; node_modules/.bin/sequelize db:seed:all\n```\n\nRun the DB migrations (Heroku)\n```bash\nheroku run sequelize db:migrate --app contactzz\nheroku run sequelize db:seed:all --app contactzz\n```\n\nRun the application locally\n```bash\nnpm run dev\n```\n\nAccess the application at http://localhost:3000\n\n### Access Heroku APIs\nhttps://contactzz.herokuapp.com/  \nhttps://contactzz.herokuapp.com/users  \nhttps://contactzz.herokuapp.com/contacts  \n\n### References\nThe following links were found useful when creating this application  \n\nhttps://github.com/babel/example-node-server  \nhttps://www.lookami.com/using-es6-es2015-in-a-node-js-express/  \nhttps://github.com/vmasto/express-babel  \nhttp://docs.sequelizejs.com/manual/tutorial/migrations.html  \nhttps://github.com/sequelize/sequelize   \nhttps://hub.docker.com/_/postgres/  \nhttps://github.com/sequelize/express-example  \nhttps://stackoverflow.com/questions/27687546/cant-connect-to-heroku-postgresql-database-from-local-node-app-with-sequelize  \nhttps://medium.com/@KerrySheldon/deploying-a-node-app-and-importing-a-postgres-database-to-heroku-8ad7bc9a2639  \nhttps://devcenter.heroku.com/changelog-items/438 (URL Construction scheme)  \nhttps://stackoverflow.com/questions/22633618/sequelize-migrations-in-heroku  \nhttp://andyfiedler.com/2016/02/getting-jetbrains-datagrip-to-work-with-heroku-postgres\nhttps://stackoverflow.com/questions/22604644/jasmine-async-callback-was-not-invoked-within-timeout-specified-by-jasmine-defa  \nhttps://volaresystems.com/blog/post/2014/12/09/Testing-async-calls-with-Jasmine\nhttps://github.com/Automattic/expect.js?files=1\nhttps://www.npmjs.com/package/supertest\nhttps://stackoverflow.com/questions/19041837/difference-between-res-send-and-res-json-in-express-js","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhimanshu%2Fcontactz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhimanshu%2Fcontactz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhimanshu%2Fcontactz/lists"}