{"id":29431989,"url":"https://github.com/icocampos/nlw-agents-back-end","last_synced_at":"2026-05-05T17:33:23.087Z","repository":{"id":303904438,"uuid":"1016982107","full_name":"icocampos/nlw-agents-back-end","owner":"icocampos","description":"Projeto desenvolvido durante o NLW Agents da Rocketseat","archived":false,"fork":false,"pushed_at":"2025-07-13T01:46:26.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-10T15:49:51.710Z","etag":null,"topics":["fastify","nodejs"],"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/icocampos.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":"2025-07-09T20:49:44.000Z","updated_at":"2025-07-13T01:46:29.000Z","dependencies_parsed_at":"2025-07-10T11:48:54.396Z","dependency_job_id":"f374faa2-b577-46d1-b78e-27766b98d787","html_url":"https://github.com/icocampos/nlw-agents-back-end","commit_stats":null,"previous_names":["icocampos/nlw-agents-back-end"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icocampos/nlw-agents-back-end","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icocampos%2Fnlw-agents-back-end","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icocampos%2Fnlw-agents-back-end/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icocampos%2Fnlw-agents-back-end/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icocampos%2Fnlw-agents-back-end/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icocampos","download_url":"https://codeload.github.com/icocampos/nlw-agents-back-end/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icocampos%2Fnlw-agents-back-end/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["fastify","nodejs"],"created_at":"2025-07-12T21:01:49.650Z","updated_at":"2026-05-05T17:33:23.070Z","avatar_url":"https://github.com/icocampos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NLW Agents\n\nThis project was developed during Rocketseat's **Next Level Week (NLW)** event, focusing on building a modern, robust, and efficient API using cutting-edge technologies.\n\n## 🚀 Technologies Used\n\n- **Node.js** with native **TypeScript** (`--experimental-strip-types`)\n- **Fastify** – High-performance web framework\n- **PostgreSQL** with **pgvector** extension for vector support\n- **Drizzle ORM** – Type-safe ORM for database operations\n- **Zod** – Schema validation with static typing\n- **Docker** – Containerized database\n- **Biome** – Code linting and formatting\n\n## 🏗️ Architecture\n\nThe project follows a clean and modular architecture:\n\n- Clear separation between routes, schemas, and database logic\n- Schema validation with **Zod** for type safety\n- Type-safe database operations with **Drizzle**\n- Centralized environment variable validation\n\n## ⚙️ Setup and Configuration\n\n### Prerequisites\n\n- Node.js (with support for `--experimental-strip-types`)\n- Docker and Docker Compose\n\n### Steps\n\n1. Clone the repository:\n\n```bash\ngit clone \u003crepo-url\u003e\ncd server\n```\n\n2. Start the database with Docker:\n\n```bash\ndocker-compose up -d\n```\n\n3. Create a `.env` file in the root folder with the following content:\n\n```\nPORT=3333\nDATABASE_URL=postgresql://docker:docker@localhost:5432/agents\n```\n\n4. Install the dependencies:\n\n```bash\nnpm install\n```\n\n5. Run the database migrations:\n\n```bash\nnpx drizzle-kit migrate\n```\n\n6. (Optional) Seed the database with sample data:\n\n```bash\nnpm run db:seed\n```\n\n7. Start the project:\n\n**Development mode:**\n\n```bash\nnpm run dev\n```\n\n**Production mode:**\n\n```bash\nnpm start\n```\n\n## 📚 Available Scripts\n\n- `npm run dev` – Runs the server in development mode with hot reload\n- `npm start` – Runs the server in production mode\n- `npm run db:seed` – Seeds the database with sample data\n\n## 🌐 Available Endpoints\n\nThe API will be running at: [http://localhost:3333](http://localhost:3333)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficocampos%2Fnlw-agents-back-end","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficocampos%2Fnlw-agents-back-end","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficocampos%2Fnlw-agents-back-end/lists"}