{"id":22118132,"url":"https://github.com/edwardcdev/node-express-rest-api","last_synced_at":"2026-04-15T18:32:07.137Z","repository":{"id":163781243,"uuid":"417496931","full_name":"edwardcdev/node-express-rest-api","owner":"edwardcdev","description":"A simple REST API based on Node.js, Express.js and SQLite","archived":false,"fork":false,"pushed_at":"2021-10-15T13:06:09.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T16:22:03.932Z","etag":null,"topics":["express","node","restful-api","sqlite"],"latest_commit_sha":null,"homepage":"","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/edwardcdev.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":"2021-10-15T12:47:04.000Z","updated_at":"2021-10-22T18:53:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"179dce55-7b79-46e1-be7d-ae9e1b74062d","html_url":"https://github.com/edwardcdev/node-express-rest-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edwardcdev/node-express-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardcdev%2Fnode-express-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardcdev%2Fnode-express-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardcdev%2Fnode-express-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardcdev%2Fnode-express-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edwardcdev","download_url":"https://codeload.github.com/edwardcdev/node-express-rest-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardcdev%2Fnode-express-rest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31854726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: 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":["express","node","restful-api","sqlite"],"created_at":"2024-12-01T13:47:53.787Z","updated_at":"2026-04-15T18:32:07.113Z","avatar_url":"https://github.com/edwardcdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Express REST API\n\n## Running\n\n1. `npm install`\n\n1. `npm run seed`, to create a database in `database.sqlite3`.\n\n1. `npm start`.\n\n\n## Specification\n\n- Server : [nodemon](https://nodemon.io/)\n\n- Database : SQLite\n\n- ORM : [Sequelize](http://docs.sequelizejs.com/)\n\n- Middleware: `getProfile`\n\n## Data Models\n\n### Profile\nA profile can be either a `client` or a `contractor`. \nclients create contracts with contractors. contractor does jobs for clients and get paid.\nEach profile has a balance property.\n\n### Contract\nA contract between and client and a contractor.\nContracts have 3 statuses, `new`, `in_progress`, `terminated`. contracts are considered active only when in status `in_progress`\nContracts group jobs within them.\n\n### Job\ncontractor get paid for jobs by clients under a certain contract.\n\n## APIs \n\n1. ***GET*** `/contracts/:id` \n\n1. ***GET*** `/contracts` \n\n1. ***GET*** `/jobs/unpaid`\n\n1. ***POST*** `/jobs/:job_id/pay`\n\n1. ***POST*** `/balances/deposit/:userId`\n\n1. ***GET*** `/admin/best-profession?start=\u003cdate\u003e\u0026end=\u003cdate\u003e`\n\n1. ***GET*** `/admin/best-clients?start=\u003cdate\u003e\u0026end=\u003cdate\u003e\u0026limit=\u003cinteger\u003e` \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwardcdev%2Fnode-express-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedwardcdev%2Fnode-express-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwardcdev%2Fnode-express-rest-api/lists"}