{"id":21436869,"url":"https://github.com/fanesz/express-ts-oop-postgresql","last_synced_at":"2026-04-17T05:03:11.170Z","repository":{"id":212851234,"uuid":"732065329","full_name":"fanesz/express-ts-oop-postgresql","owner":"fanesz","description":"Simple backend with Express.js, Typescript, OOP Architecture, and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2023-12-23T14:10:50.000Z","size":294,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T14:45:33.845Z","etag":null,"topics":["express","oop","postgresql","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/fanesz.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":"2023-12-15T14:55:45.000Z","updated_at":"2024-06-18T01:28:26.000Z","dependencies_parsed_at":"2023-12-23T16:08:42.013Z","dependency_job_id":null,"html_url":"https://github.com/fanesz/express-ts-oop-postgresql","commit_stats":null,"previous_names":["fanesz/express-ts-oop-postgresql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fanesz/express-ts-oop-postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanesz%2Fexpress-ts-oop-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanesz%2Fexpress-ts-oop-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanesz%2Fexpress-ts-oop-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanesz%2Fexpress-ts-oop-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fanesz","download_url":"https://codeload.github.com/fanesz/express-ts-oop-postgresql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanesz%2Fexpress-ts-oop-postgresql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["express","oop","postgresql","typescript"],"created_at":"2024-11-23T00:16:25.677Z","updated_at":"2026-04-17T05:03:11.131Z","avatar_url":"https://github.com/fanesz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express with Typescript and OOP Architecture\nThis is a simple backend project built using the Express framework, written in Typescript, and implemented with a PostgreSQL database, following the principles of Object-Oriented Programming (OOP). I designed this OOP architecture independently without any reference from other projects, so I welcome any criticism and suggestions.\n\n![class-diagram](./github-media/class-diagram.png)\n\n## Tech Stack\n- Programming Language: [Typescript](https://www.typescriptlang.org/)\n- Database: [PostgreSQL](https://www.postgresql.org/), [Node-postgres](https://node-postgres.com/), [node-pg-migrate](https://www.npmjs.com/package/node-pg-migrate)\n- API Framework: [Express](https://expressjs.com/)\n\n## Installation\n- clone this repo and CD to the repo dir\n- run in terminal: `npm install`\n- run in terminal: `cp example.env .env`\n- create database and specify the database name at PGDATABASE inside .env\n- edit .env file into your postgres database\n- run `npm run migrate up`\n- run `npm run dev`\n\n## Routes\n- get - /categories - To get all categories\n- get - /categories/:id - To get category by ID\n- post - /categories - To create new category\n- put - /categories/:id - To update a category by ID\n- delete - /categories/:id - To delete a category by ID\n- get - /products - To get all products\n- get - /products/:id - To get product by ID\n- post - /products - To create new product\n- put - /products/:id - To update a product by ID\n- delete - /products/:id - To delete a product by ID","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffanesz%2Fexpress-ts-oop-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffanesz%2Fexpress-ts-oop-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffanesz%2Fexpress-ts-oop-postgresql/lists"}