{"id":23038825,"url":"https://github.com/kauefraga/learning-postgres","last_synced_at":"2026-04-30T10:34:32.056Z","repository":{"id":111886665,"uuid":"544241806","full_name":"kauefraga/learning-postgres","owner":"kauefraga","description":"🐘 Trying out SQL using postgres \"bare metal\" (without orm)","archived":false,"fork":false,"pushed_at":"2022-10-08T20:28:21.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T14:09:20.789Z","etag":null,"topics":["migrations","postgres","postgresql","sql"],"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/kauefraga.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":"2022-10-02T02:00:22.000Z","updated_at":"2022-10-30T23:13:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"287d15cd-f618-4a23-8385-0fa37abc0713","html_url":"https://github.com/kauefraga/learning-postgres","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/kauefraga%2Flearning-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kauefraga%2Flearning-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kauefraga%2Flearning-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kauefraga%2Flearning-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kauefraga","download_url":"https://codeload.github.com/kauefraga/learning-postgres/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911490,"owners_count":20853654,"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":["migrations","postgres","postgresql","sql"],"created_at":"2024-12-15T18:25:34.231Z","updated_at":"2026-04-30T10:34:31.970Z","avatar_url":"https://github.com/kauefraga.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eLearning Postgres\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg\n    alt=\"GitHub top language\"\n    src=\"https://img.shields.io/github/languages/top/kauefraga/learning-postgres.svg\"\n  /\u003e\n  \u003cimg\n    alt=\"Repository size\"\n    src=\"https://img.shields.io/github/repo-size/kauefraga/learning-postgres.svg\"\n  /\u003e\n  \u003ca href=\"https://github.com/kauefraga/learning-postgres/commits/main\"\u003e\n    \u003cimg\n      alt=\"GitHub last commit\"\n      src=\"https://img.shields.io/github/last-commit/kauefraga/learning-postgres.svg\"\n    /\u003e\n  \u003c/a\u003e\n  \u003cimg\n    alt=\"GitHub LICENSE\"\n    src=\"https://img.shields.io/github/license/kauefraga/learning-postgres.svg\"\n  /\u003e\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003e🐘 Trying out SQL using Postgres without orm 🐘\u003c/h4\u003e\n\n## 📝 Table of contents\n- What do you need to run it\n  - [nodejs](https://nodejs.org/en) (prefer lts version)\n    - [pnpm](https://pnpm.io)\n  - [docker](https://www.docker.com)\n- How to download\n- How to set up Postgres (with docker)\n\n## ⬇️ How to download and run\n\n```bash\ngit clone https://github.com/kauefraga/learning-postgres.git\ncd learning-postgres\nnpm install\nnpm run build\nnpm run start\n\n# if you want to develop\nnpm run dev\n```\nOr downloading with yarn? `yarn \u0026\u0026 yarn build \u0026\u0026 yarn start`\n\u003cbr/\u003e\nSincerely, i prefer pnpm so: `pnpm i \u0026\u0026 pnpm build \u0026\u0026 pnpm start`\n\n## 🐳 How to set up Postgres (docker image -\u003e bitnami/postgres)\n```sh\n# if you get an error try sudo mode\ndocker run --name postgresql bitnami/postgresql:latest\ndocker-compose up -d\n```\nsource: https://hub.docker.com/r/bitnami/postgresql\n\n## 💻 Technologies\n\n- 🐳 [Docker](https://www.docker.com)\n  \u003e Use virtualization/containerize to turn your \"work on my machine\" into \"our machine\"\n- 🤫 [Dotenv](https://npmjs.com/package/dotenv)\n  \u003e We must hide our secret keys, with dotenv we can load env variables into `process.env` more easily\n- 💄 Code ruling with [Eslint](https://eslint.org)\n  - https://www.npmjs.com/package/eslint-config-airbnb-base\n  - https://www.npmjs.com/package/eslint-config-airbnb-typescript\n- 🐘 Database [Postgres](https://www.npmjs.com/package/postgres)\n  \u003e PostgreSQL is a relational database. It is the driver implementation for nodejs\n- 👀 Logging with [Winston](https://www.npmjs.com/package/winston)\n  \u003e Winston is fully featured logger for NodeJS applications\n- 🧑‍💻 Developed on [Typescript](https://typescriptlang.org) + [TS-Node-Dev](https://npmjs.com/package/ts-node-dev)\n  \u003e Improve dev experience by adding type safety\n\n## 🗃️ Project tree view\n\n```bash\n.\n├─ src\n│  ├─ infra\n│    ├─ migrations\n│    ├─ db.ts\n│    ├─ logger.ts\n│    ├─ run-migrations.ts\n│  ├─ main.ts\n│  ├─ query.sql\n├─ .eslintrc.json\n├─ .env\n├─ docker-compose.yaml\n└─ tsconfig.json\n```\n\n## 📝 License\n\nThis project is licensed under the MIT License - See the [LICENSE](https://github.com/kauefraga/learning-postgres/blob/main/LICENSE) for more information.\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"Built with love\" src=\"https://forthebadge.com/images/badges/built-with-love.svg\"\u003e\n  \u003cimg alt=\"Powered by coffee\" src=\"https://forthebadge.com/images/badges/powered-by-coffee.svg\"\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkauefraga%2Flearning-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkauefraga%2Flearning-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkauefraga%2Flearning-postgres/lists"}