{"id":24984365,"url":"https://github.com/leonardovff/nodejs-bookstore-api","last_synced_at":"2026-04-11T09:42:45.814Z","repository":{"id":91014705,"uuid":"597554002","full_name":"leonardovff/nodejs-bookstore-api","owner":"leonardovff","description":"Bookstore API using docker, nodejs, typescript, mongodb, prisma orm and jest. Trying to follow the clean architecture.","archived":false,"fork":false,"pushed_at":"2023-02-12T11:12:53.000Z","size":866,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-31T01:34:16.832Z","etag":null,"topics":["docker","docker-compose","jest","mongodb","nodejs","prisma","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/leonardovff.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,"zenodo":null}},"created_at":"2023-02-04T22:18:05.000Z","updated_at":"2023-02-12T12:08:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e07df05d-d286-4048-a649-666c290cfaba","html_url":"https://github.com/leonardovff/nodejs-bookstore-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leonardovff/nodejs-bookstore-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardovff%2Fnodejs-bookstore-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardovff%2Fnodejs-bookstore-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardovff%2Fnodejs-bookstore-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardovff%2Fnodejs-bookstore-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonardovff","download_url":"https://codeload.github.com/leonardovff/nodejs-bookstore-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardovff%2Fnodejs-bookstore-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31676210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"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":["docker","docker-compose","jest","mongodb","nodejs","prisma","typescript"],"created_at":"2025-02-04T09:48:32.144Z","updated_at":"2026-04-11T09:42:45.808Z","avatar_url":"https://github.com/leonardovff.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BOOKSTORE NODE.JS API\nA bookstore API created using node.js, typescript/javascript, mongodb, prisma orm, and jest.\n\nTrying to follow the depency rule and layers described in clean architecture, but avoiding to use or create a dependency injection mechanism.\n\n## Requirements to run the project\nDocker and docker compose (it is installed together with docker in the last versions)\n\n## Development setup\n```bash\n# Copy the .env-example to .env\ncp .env-example .env\n\n# It will init all the containers required to run the project\ndocker compose up -d\n\n# If you want to check the logs you can use\ndocker compose logs\n\n# or if you want to check the logs of just one container\ndocker compose logs node\n```\n\n## Development setup: steps by step\n1. Start the mongodb server\n```bash\n# Copy the .env-example to .env\ncp .env-example .env\n\n# Up the containers with mongodb working with replicas (it is required by prisma)\ndocker compose up -d mongo1 mongo2 mongo3\n```\n2. If you want, there is a web visual client for mongodb in the project:\n```bash\n# Up the containers with mongo-express (the web visual client)\ndocker compose up -d mongo-ui\n\n# Now you can open the link http://localhost:8086 in your browser\n```\n\n3. Start the dev server container\n```bash\ndocker compose up node\n```\n\n## API documentation\nBy default a open api documentation and swagger ui is generated and is available the /api-docs endpoint\n\n## Run commands inside the node container\n```bash\ndocker compose exec node sh\n```\n\n### Seed the database\n```bash\ndocker compose exec node sh -c 'npm run seed'\n```\n\n### Run lint\n```bash\ndocker compose exec node sh -c 'npm run lint'\n```\n\n### Run tests\n```bash\ndocker compose exec node sh -c 'npm run test'\n\n# if you want you can run it in watch mode\ndocker compose exec node sh -c 'npm run test -- --watchAll'\n```\n\n### To improve developer experience - we recommend:\n- Use in vscode the following extensions:\n1. editorconfig\n2. eslint\n3. prisma\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardovff%2Fnodejs-bookstore-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonardovff%2Fnodejs-bookstore-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardovff%2Fnodejs-bookstore-api/lists"}