{"id":23678575,"url":"https://github.com/erickgbr/tecnical-test-node","last_synced_at":"2026-04-07T09:32:20.323Z","repository":{"id":243254471,"uuid":"810881425","full_name":"ErickGBR/tecnical-test-node","owner":"ErickGBR","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-12T06:01:37.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T18:46:36.468Z","etag":null,"topics":["api","backend","express","express-js","expressjs","node","node-js","nodejs","tech","techtest","tecnical-test","testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ErickGBR.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":"2024-06-05T14:23:09.000Z","updated_at":"2025-01-07T14:46:08.000Z","dependencies_parsed_at":"2024-06-12T08:41:22.847Z","dependency_job_id":null,"html_url":"https://github.com/ErickGBR/tecnical-test-node","commit_stats":null,"previous_names":["erickgbr/tecnical-test-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ErickGBR/tecnical-test-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Ftecnical-test-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Ftecnical-test-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Ftecnical-test-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Ftecnical-test-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErickGBR","download_url":"https://codeload.github.com/ErickGBR/tecnical-test-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Ftecnical-test-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31508048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["api","backend","express","express-js","expressjs","node","node-js","nodejs","tech","techtest","tecnical-test","testing"],"created_at":"2024-12-29T15:33:39.057Z","updated_at":"2026-04-07T09:32:20.307Z","avatar_url":"https://github.com/ErickGBR.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js CRUD API with SQLite\n\nThis project is a CRUD API built with Node.js and SQLite. It manages Authors and Books, providing endpoints to create, read, update, and delete records. Unit tests are included using Jest.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Endpoints](#api-endpoints)\n  - [Database](#database)\n  - [Authors](#authors)\n  - [Books](#books)\n- [Running Tests](#running-tests)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/ErickGBR/tecnical-test-node.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd tecnical-test-node\n   ```\n3. Install the dependencies:\n   ```bash\n   npm install\n   ```\n\n## Usage\n\n1. Start the server:\n   ```bash\n   npm run serve\n   ```\n   The server will start on `http://localhost:3000`.\n\n## API Endpoints\n\n### Database\n\n- **GET /api/v1/db/**: Retrieve the route to create database tables\n\n### Authors\n\n- **GET /authors**: Get all authors\n- **GET /authors/:id**: Get a single author by ID\n- **POST /authors**: Create a new author\n  - Request body:\n    ```json\n    {\n      \"name\": \"\u003cSTRING\u003e\",\n      \"bio\": \"\u003cSTRING\u003e\"\n    }\n    ```\n- **PUT /authors/:id**: Update an author by ID\n  - Request body:\n    ```json\n    {\n      \"name\": \"\u003cSTRING\u003e\",\n      \"bio\": \"\u003cSTRING\u003e\"\n    }\n    ```\n- **DELETE /authors/:id**: Delete an author by ID\n\n### Books\n\n- **GET /books**: Get all books\n- **GET /books/:id**: Get a single book by ID\n- **POST /books**: Create a new book\n  - Request body:\n    ```json\n    {\n      \"title\": \"\u003cSTRING\u003e\",\n      \"summary\": \"\u003cSTRING\u003e\",\n      \"authId\": \u003cINTEGER\u003e\n    }\n    ```\n- **PUT /books/:id**: Update a book by ID\n  - Request body:\n    ```json\n    {\n      \"title\": \"\u003cSTRING\u003e\",\n      \"summary\": \"\u003cSTRING\u003e\",\n      \"authId\": \u003cINTEGER\u003e\n    }\n    ```\n- **DELETE /books/:id**: Delete a book by ID\n\n## Running Tests\n\n1. Run the tests with Jest:\n   ```bash\n   npm test\n   ```\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickgbr%2Ftecnical-test-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferickgbr%2Ftecnical-test-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickgbr%2Ftecnical-test-node/lists"}