{"id":16785566,"url":"https://github.com/martins-rafael/doe","last_synced_at":"2026-04-11T13:33:31.027Z","repository":{"id":42922483,"uuid":"241160171","full_name":"martins-rafael/doe","owner":"martins-rafael","description":":gift_heart: Aplicação web para cadastrar doações de sangue, desenvolvido durante a MaratonaDev 3.0 da Rocketseat.","archived":false,"fork":false,"pushed_at":"2022-12-12T03:57:44.000Z","size":2698,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T23:15:57.888Z","etag":null,"topics":["css","html","javascript","nodejs","postgresql","rocketseat"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/martins-rafael.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":"2020-02-17T16:54:42.000Z","updated_at":"2023-03-07T07:08:00.000Z","dependencies_parsed_at":"2023-01-27T13:01:06.599Z","dependency_job_id":null,"html_url":"https://github.com/martins-rafael/doe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/martins-rafael/doe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-rafael%2Fdoe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-rafael%2Fdoe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-rafael%2Fdoe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-rafael%2Fdoe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martins-rafael","download_url":"https://codeload.github.com/martins-rafael/doe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martins-rafael%2Fdoe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31682953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","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":["css","html","javascript","nodejs","postgresql","rocketseat"],"created_at":"2024-10-13T08:09:44.212Z","updated_at":"2026-04-11T13:33:30.992Z","avatar_url":"https://github.com/martins-rafael.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"public/images/logo.png\" alt=\"logo\" height=\"64px\" width=\"auto\"\u003e\n\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e :two_hearts: A sua doação importa!\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/made%20by-RAFAEL%20MARTINS-ff4f4f?style=flat-square\"\u003e\n  \u003cimg alt=\"GitHub language count\" src=\"https://img.shields.io/github/languages/count/martins-rafael/Doe?color=ff4f4f\u0026style=flat-square\"\u003e\n  \u003cimg alt=\"Repository size\" src=\"https://img.shields.io/github/repo-size/martins-rafael/Doe?color=ff4f4f\u0026style=flat-square\"\u003e\n  \u003ca href=\"https://github.com/martins-rafael/Doe/commits/master\"\u003e\n    \u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/martins-rafael/Doe?color=ff4f4f\u0026style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n    \u003cimg alt=\"License\" src=\"https://img.shields.io/badge/license-MIT-ff4f4f?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#rocket-tecnologias\"\u003eTecnologias\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#computer-projeto\"\u003eProjeto\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#wrench-instalação-e-uso\"\u003eInstalação e uso\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#memo-licença\"\u003eLicença\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\".github/doe.png\" alt=\"screenshot\" \u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n## :rocket: Tecnologias\n\nAs seguintes tecnologias foram utilizadas no desenvolvimento do projeto:\n\n- [HTML](https://devdocs.io/html/)\n- [CSS](https://devdocs.io/css/)\n- [Javascript](https://devdocs.io/javascript/)\n- [Node.JS](https://nodejs.org/en/)\n- [PostgreSQL](https://www.postgresql.org/)\n\n\u003cbr\u003e\n\n## :computer: Projeto\nO Doe é uma aplicação web para cadastrar doações de sangue, desenvolvido durante a MaratonaDev 3.0 da [Rocketseat](https://rocketseat.com.br/).\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\".github/demo.gif\" alt=\"demonstração\" \u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n## :wrench: Instalação e uso\n\nPara rodar a aplicação, você precisa ter instalado em sua máquina o [Node](https://nodejs.org/en/), o [Postgres](https://www.postgresql.org/) e o [Postbird](https://www.electronjs.org/apps/postbird).\n\nSiga os passos abaixo:\n\n1) Abra um terminal e copie este repositório com o comando\n    ```\n    git clone https://github.com/martins-rafael/doe.git\n    ```\n    ou use a opção de download.\n\n2) Entre na pasta com\n    ```\n    cd doe\n    ```\n\n3) Instale as dependências\n    ```\n    npm install\n    ```\n\n4) Utilizando a ferramenta Postbird, crie o banco de dados \"doe\" **através da query** ```CREATE DATABASE doe```. Agora crie a tabela com o nome de **donors** que possua os seguintes campos:\n- name: TEXT e NOT NULL;\n- email: TEXT e NOT NULL;\n- blood: TEXT e NOT NULL;\n\n5) Para configurar a conexão com o banco de dados, abra o arquivo ```server.js``` dentro da pasta ```src``` e edite a **linha 18** com o password cadastrado durante a instalação do Postgres.\n```js\n    // conexão com banco de dados\n    const { Pool } = require('pg')\n    const db = new Pool({\n      user: 'postgres', // default user\n      password: '0000', // altere com sua senha do postgres\n      host: 'localhost',\n      port: 5432,\n      database: 'doe'\n    })\n```\n\n6) Rode a aplicação:\n    ```\n    npm start\n    ```\n\n7) Acesse ```http://localhost:3000``` no seu navagador.\n\n\u003cbr\u003e\n\n## :memo: Licença\n\nEsse projeto está sob a licença MIT. Veja o arquivo [LICENSE](/LICENSE) para mais detalhes.\n\n---\n\nFeito com :purple_heart: by [Rafael Martins](https://github.com/martins-rafael)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartins-rafael%2Fdoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartins-rafael%2Fdoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartins-rafael%2Fdoe/lists"}