{"id":24374285,"url":"https://github.com/mannuelf/bookeezy-api","last_synced_at":"2026-04-20T22:07:46.076Z","repository":{"id":41893521,"uuid":"406125555","full_name":"mannuelf/bookeezy-api","owner":"mannuelf","description":"GraphQL backend for Bookeezy","archived":false,"fork":false,"pushed_at":"2023-02-03T23:58:43.000Z","size":3124,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T11:07:21.416Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mannuelf.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}},"created_at":"2021-09-13T20:52:07.000Z","updated_at":"2023-11-20T08:20:02.000Z","dependencies_parsed_at":"2023-02-18T12:19:35.520Z","dependency_job_id":null,"html_url":"https://github.com/mannuelf/bookeezy-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mannuelf/bookeezy-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mannuelf%2Fbookeezy-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mannuelf%2Fbookeezy-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mannuelf%2Fbookeezy-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mannuelf%2Fbookeezy-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mannuelf","download_url":"https://codeload.github.com/mannuelf/bookeezy-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mannuelf%2Fbookeezy-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32067704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2025-01-19T05:27:56.551Z","updated_at":"2026-04-20T22:07:46.040Z","avatar_url":"https://github.com/mannuelf.png","language":"TypeScript","readme":"# Bookeezy API\n\nLocal development has two options:\n\n1. Docker with standard Node.js and npm workflow, with a Docker PostgreSQL database container with mounted persistent volumes.\n2. Kubernetes with Docker using Minikube.\n\n## 1. Docker and Node.js\n\nDownload \u0026 install Docker for desktop [here](https://www.docker.com/get-started) or Docker compose [here](https://docs.docker.com/compose/)\n\n### Database\n\nTo create the PostgreSQL database run:\n\n```bash\ndocker-compose up -d\n```\n\nExec into container check it's working as should be:\n\n```bash\ndocker exec -it bookeezy-api_postgresql_1 /bin/sh;\n```\n\nConnect application to the DB via Mikro-orm connector\n\n```javascript\nexport default {\n  type: 'postgresql',\n  entities: [User, Book],\n  dbName: 'bookeezydb', // HERE\n  user: 'root', // HERE\n  password: 'root', // HERE\n  migrations: {\n    path: path.join(__dirname, './migrations'),\n    pattern: /^[\\w-]+\\d+\\.[tj]s$/,\n  },\n};\n```\n\n### Node\n\nInstall dependencies:\n\n```bash\nyarn\n```\n\nRun nodemon server which serves up the `dist` folder:\n\n```bash\nyarn watch\n```\n\nRun in development mode with type checking:\n\n```bash\nyarn dev:ts\n```\n\n## GraphQL\n\nStart GraphQL Server\n\n```bash\nyarn dev:ts\n```\n\nAt [http://localhost:4000/graphql](http://localhost:4000/graphql), you should see:\n\n![image](https://user-images.githubusercontent.com/210504/134149956-6c794560-60f3-4e2b-969b-0786fd5c8a35.png)\n\n## 2. Kubernetes\n\nInstall [minikube](www.minikube.sigs.k8s.io) \u0026 [kubectl](https://kubernetes.io/docs/tasks/tools/) , out of scope for this guide.\n\n### PostgreSQL\n\nStart the PostgreSQL service.\n\nTo start k8's env, cd into k8's folder and run command below:\n\n```bash\nkubectl apply -f postgres-workload.yml\n```\n\nThat will create:\n\n- Deployment\n- PersistentVolume\n- PersistentVolumeClaim\n- ConfigMap\n- Service\n\nCheck if everything works:\n\n```bash\nkubectl get svc,deploy,po,persistentvolume,persistentvolumeclaims,configmaps\n```\n\n```bash\nminikube start\n```\n\n```bash\nminikube pause\n```\n\nDon't lose you environment, run this before putting computer to sleep or if you not working with minikube.\n\n```bash\nminikube unpause\n```\n\n```bash\nminikube stop\n```\n\n```bash\nminikube delete\n```\n\nChange docker env context to minikube (add this to your .bash_profile or .zshrc)\n\n```bash\neval $(minikube docker-env)\n```\n\n### Other useful Kubernetes commands\n\n```bash\nkubectl create -f webserver.yml\n```\n\nTest to see if it worked\n\n```bash\nkubectl get replicasets\n```\n\n#### Create service\n\n```bash\nkubectl create -f webserver-scv.yml\n```\n\n#### Expose service\n\n```bash\nkubectl expose deployment webserver --name=web-service --type=NodePort\n```\n\n#### Get pods\n\n```bash\nkubectl get po\n```\n\n#### List services\n\n```bash\nkubectl get svc\n```\n\n#### Describe service\n\n```bash\nkubectl describe service db-service\n```\n\n#### Minikube IP\n\nApplication is running on the Minikube VM, so get the IP\n\n```bash\nminikube ip\n```\n\n#### Launch service in the browser\n\n```bash\nminikube service web-service-name\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmannuelf%2Fbookeezy-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmannuelf%2Fbookeezy-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmannuelf%2Fbookeezy-api/lists"}