{"id":20440308,"url":"https://github.com/alyssonbarrera/ignite-spacetime-server","last_synced_at":"2026-04-13T19:31:14.604Z","repository":{"id":166254121,"uuid":"641213394","full_name":"alyssonbarrera/ignite-spacetime-server","owner":"alyssonbarrera","description":"Projeto Back-end | NLW Spacetime - Rocketseat","archived":false,"fork":false,"pushed_at":"2023-07-08T14:39:51.000Z","size":463,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-31T02:27:46.141Z","etag":null,"topics":["aws","aws-ec2","aws-s3","axios","docker","fastify","nginx","nodejs","pm2","postgresql","prisma","supertest","typescript","vitest","zod"],"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/alyssonbarrera.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":"2023-05-16T02:39:48.000Z","updated_at":"2023-07-08T15:40:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"84a04fc6-a4e2-42a2-9290-59afb340ef48","html_url":"https://github.com/alyssonbarrera/ignite-spacetime-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alyssonbarrera/ignite-spacetime-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyssonbarrera%2Fignite-spacetime-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyssonbarrera%2Fignite-spacetime-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyssonbarrera%2Fignite-spacetime-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyssonbarrera%2Fignite-spacetime-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alyssonbarrera","download_url":"https://codeload.github.com/alyssonbarrera/ignite-spacetime-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyssonbarrera%2Fignite-spacetime-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"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":["aws","aws-ec2","aws-s3","axios","docker","fastify","nginx","nodejs","pm2","postgresql","prisma","supertest","typescript","vitest","zod"],"created_at":"2024-11-15T09:23:28.639Z","updated_at":"2026-04-13T19:31:14.578Z","avatar_url":"https://github.com/alyssonbarrera.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API\n\nTime capsule application API\n\n## Memories  \n### Requisitos Funcionais  \n- [x] Deve ser possível cadastrar uma memória;  \n- [x] Deve ser possível consultar uma memória;  \n- [x] Deve ser possível consultar todas as memórias;  \n- [x] Deve ser possível atualizar uma memória;  \n- [x] Deve ser possível deletar uma memória.  \n\n## User  \n### Requisitos Funcionais  \n- [x] Deve ser possível cadastrar um usuário;  \n- [x] Deve ser possível autenticar um usuário. \n\n---\n\nDocumentação: https://documenter.getpostman.com/view/20700565/2s93m34j4C\n\n---\n\n### 💻 Para rodar em sua máquina, siga os passos abaixo:  \n\n\u003cbr/\u003e\n\n📄 Clone o projeto em sua máquina;  \n\n🔐 Tendo feito isso, entre na pasta do projeto e crie o arquivo .env;  \n\n📄 Uma vez criado, ele deverá conter:  \n\n```\n# Database\nDATABASE_URL=\"postgresql://docker:docker@localhost:5432/nlwspacetime?schema=public\"\n\n# Environment\nNODE_ENV=\"dev\"\n\n#Server\nPORT=3333\n\n# Github\nGITHUB_CLIENT_ID=\"\"\nGITHUB_CLIENT_SECRET=\"\"\n\n# Github web\nGITHUB_WEB_CLIENT_ID=\"123456789\"\nGITHUB_WEB_CLIENT_SECRET=\"123456789\"\n\n# Github mobile\nGITHUB_MOBILE_CLIENT_ID=\"123456789\"\nGITHUB_MOBILE_CLIENT_SECRET=\"123456789\"\n\n# Secret\nJWT_SECRET=\"secret\"\n\n# Request\nREQUEST_PROTOCOL=\"http\"\nREQUEST_HOSTNAME=\"localhost\"\n\n# AWS\nAWS_REGION=\"\"\nAWS_BUCKET=\"\"\nAWS_ACCESS_KEY_ID=\"\"\nAWS_SECRET_ACCESS_KEY=\"\"\n\n# Storage\nSTORAGE_PROVIDER=\"s3\"\n```\n💡 Lembre-se de atualizar as variáveis com base em suas configurações.  \n\n📂 Em seguinda, abra o terminal na pasta do projeto e rode o seguinte comando:  \n\n```shell\ndocker compose up\n ```\n\n⌨ Após, será necessário instalar as dependências, então execute em seu terminal:  \n\n```shell\nnpm install\n```\n\n🌎 Em seguida, rode as migrations usando:  \n\n```shell\nnpx prisma migrate deploy\n```\n\n📡 Com tudo pronto, será possível acessar a aplicação usando:  \n\n```text\nhttp://localhost:3333\n```\n\n🧪 Caso queira executar os testes unitários, use:  \n\n```shell\nnpm run test\n```\n\n🧪 Caso queira executar os testes E2E, use:  \n\n```shell\nnpm run test:e2e\n```\n\n---\n\n## Stack\n\n- TypeScript\n- Node.js\n- PostgreSQL\n- Fastify\n- Prisma ORM\n- Zod\n- Vitest\n- Supertest\n- Axios\n- AWS S3\n- AWS EC2\n- Nginx\n- PM2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falyssonbarrera%2Fignite-spacetime-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falyssonbarrera%2Fignite-spacetime-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falyssonbarrera%2Fignite-spacetime-server/lists"}