{"id":25543464,"url":"https://github.com/allanvillatoro/nodewebinar","last_synced_at":"2026-04-28T21:32:30.656Z","repository":{"id":277092380,"uuid":"925922014","full_name":"allanvillatoro/nodewebinar","owner":"allanvillatoro","description":"This project serves as a demonstration of best practices in modern Node.js and TypeScript development, with a strong focus on code quality, maintainability, and automated testing","archived":false,"fork":false,"pushed_at":"2025-02-20T03:41:40.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T04:28:59.191Z","etag":null,"topics":["continuous-integration","formatting","github-actions","integration-testing","linting","typescript","unit-testing"],"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/allanvillatoro.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":"2025-02-02T04:23:55.000Z","updated_at":"2025-02-20T03:41:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c471b8b-b589-41cb-b44f-0c836fd33291","html_url":"https://github.com/allanvillatoro/nodewebinar","commit_stats":null,"previous_names":["allanvillatoro/nodewebinar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvillatoro%2Fnodewebinar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvillatoro%2Fnodewebinar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvillatoro%2Fnodewebinar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvillatoro%2Fnodewebinar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allanvillatoro","download_url":"https://codeload.github.com/allanvillatoro/nodewebinar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239793061,"owners_count":19697893,"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":["continuous-integration","formatting","github-actions","integration-testing","linting","typescript","unit-testing"],"created_at":"2025-02-20T07:19:32.763Z","updated_at":"2026-04-28T21:32:30.646Z","avatar_url":"https://github.com/allanvillatoro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Improving code quality in Node.js\n\nThis project serves as a demonstration of best practices in modern Node.js and TypeScript development, with a strong focus on code quality, maintainability, and automated testing. It incorporates the following key practices and tools:\n\n- `Strict TypeScript Configuration` – Enforcing type safety and catching potential errors at compile time.\n- `Code Formatting \u0026 Linting` – Using ESLint and Prettier to maintain a consistent code style.\n- `Pre-commit Hooks` – Utilizing Husky to ensure code quality checks before commits.\n- `Testing Strategy` – Implementing both unit tests and integration tests to verify functionality.\n- `Continuous Integration` – Leveraging GitHub Actions to automate tests and quality checks on every push and pull request.\n- `Code Analysis with SonarCloud` – Ensuring code reliability, security, and maintainability.\n\nBy integrating these tools and workflows, this project demonstrates how to build a robust, scalable, and well-tested Node.js application.\n\n## Installation\n\n```bash\n\n# install dependencies\n$ npm ci\n```\n\n## Running the app\n\n```bash\n\n# start postgres docker container\n$ npm run localdb:up\n\n# start app locally\n$ npm run dev\n\n```\n\n## Running tests\n\n```bash\n# unit tests\n$ npm run test\n\n# unit test coverage\n$ npm run test:coverage\n\n# integration tests\n$ npm run testdb:up\n$ npm run test:integration\n```\n\n[Check Unit Testing Handbook](./docs/UNIT_TESTS.md)\n\n## About the application\n\nThis application allows you to create a movie database. Anonymous uses can review every movie with a rating and comments.\n\n### Routes:\n\n1. **Movies:**\n\n   - **POST `/movies`**: To add a new movie.\n   - **PUT `/movies/:movieId`**: To update an existing movie.\n   - **GET `/movies/topfive`**: To get the top 5 highest-rated movies.\n   - **GET `/movies/:movieId`**: To get a movie by its ID.\n   - **GET `/movies`**: To get all movies.\n\n2. **Movie Reviews:**\n   - **POST `/movies/reviews`**: To add a new review for a movie.\n   - **PUT `/movies/reviews/:movieReviewId`**: To update an existing review.\n   - **GET `/movies/reviews/:movieReviewId`**: To get a review by its ID.\n   - **GET `/movies/:movieId/reviews`**: To get all reviews for a specific movie.\n   - **DELETE `/movies/:movieId/reviews`**: To delete all reviews for a specific movie.\n\n[Check Postman documentation](https://documenter.getpostman.com/view/818109/2sAYX9ogPD)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanvillatoro%2Fnodewebinar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallanvillatoro%2Fnodewebinar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanvillatoro%2Fnodewebinar/lists"}