{"id":26981542,"url":"https://github.com/leticea/nlw-spacetime-server","last_synced_at":"2026-05-04T10:40:13.286Z","repository":{"id":167681442,"uuid":"643299075","full_name":"leticea/nlw-spacetime-server","owner":"leticea","description":"Projeto do NLW na plataforma da Rocketseat.","archived":false,"fork":false,"pushed_at":"2024-01-04T00:19:18.000Z","size":24721,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-01-04T02:01:47.324Z","etag":null,"topics":["axios","fastify","nodejs","prisma","typescript","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/leticea.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}},"created_at":"2023-05-20T18:06:55.000Z","updated_at":"2023-05-27T13:41:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"dbd438f7-a784-4cd1-b867-38e1686545cf","html_url":"https://github.com/leticea/nlw-spacetime-server","commit_stats":null,"previous_names":["leticea/nlw-spacetime-server"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leticea%2Fnlw-spacetime-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leticea%2Fnlw-spacetime-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leticea%2Fnlw-spacetime-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leticea%2Fnlw-spacetime-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leticea","download_url":"https://codeload.github.com/leticea/nlw-spacetime-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247028959,"owners_count":20871787,"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":["axios","fastify","nodejs","prisma","typescript","zod"],"created_at":"2025-04-03T15:37:02.462Z","updated_at":"2026-05-04T10:40:08.232Z","avatar_url":"https://github.com/leticea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-tecnologias\"\u003eTecnologias\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-projeto\"\u003eProjeto\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-como-rodar\"\u003eComo rodar\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-como-contribuir\"\u003eComo contribuir\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n# NLW Spacetime\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"\" src=\".github/wallpaper.png\"\u003e\n\u003c/p\u003e\n\n## 🚀 Tecnologias\n\nEsse projeto foi desenvolvido com as seguintes tecnologias:\n\n- [Nodejs](https://nodejs.org/en/) - v18.12.1\n- [Npm](https://www.npmjs.com/) - 8.19.2\n- [Axios](https://www.npmjs.com/package/axios) - 1.4.0\n- [Fastify](https://www.fastify.io/) - 4.17.0\n- [TypeScript](https://www.typescriptlang.org/) - 5.0.4\n- [SQLite](https://www.sqlite.org/index.html)\n- [Prisma](https://www.prisma.io/docs) - 4.14.1\n- [Zod](https://zod.dev/) - 3.21.4\n\n## 💻 Projeto\n\nProjeto desenvolvido com API em Node.js para a criação de uma cápsula do tempo.\n\nEvento do NLW na plataforma da [Rocketseat](https://www.rocketseat.com.br/).\n\n- [Front-end - Web](https://github.com/leticea/nlw-spacetime-web)\n- [Front-end - Mobile](https://github.com/leticea/nlw-spacetime-mobile)\n\n## 🚀 Como Rodar\n\n- Clone o projeto.\n- Entre na pasta do projeto e rode 'npm install' (use 'yarn install' se for essa a sua configuração).\n- npx prisma migrate dev (para configurar o banco de dados).\n- npx prisma studio (para rodar a página do banco de dados).\n- npm run dev (roda o servidor na porta localhost:3333).\n\n## 👩🏿‍💻 Rotas de Autenticação das Memórias\n\n- **`POST http://localhost:3333/memories`**: Rota para criar uma memória:\n\nEnvia:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"\" src=\".github/image.png\"\u003e\n\u003c/p\u003e\n\n- **`GET http://localhost:3333/memories`**: Rota para listar as memórias:\n\nRetorna:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"\" src=\".github/image2.png\"\u003e\n\u003c/p\u003e\n\n- **`GET http://localhost:3333/memories/:id`**: Rota para detalhar uma memória:\n\nRetorna:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"\" src=\".github/image3.png\"\u003e\n\u003c/p\u003e\n\n- **`PUT http://localhost:3333/memories/:id`**: Rota para atualizar uma memória:\n\nEnvia:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"\" src=\".github/image4.png\"\u003e\n\u003c/p\u003e\n\n- **`DELETE http://localhost:3333/memories/:id`**: Rota para deletar uma memória.\n\n## 👩🏿‍💻 Rota de Registro\n\n- **`POST http://localhost:3333/register`**: Rota que cria o usuário no Banco de Dados:\n\nEnvia:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"\" src=\".github/image5.png\"\u003e\n\u003c/p\u003e\n\n## 🤔 Como contribuir\n\n- Faça um fork desse repositório;\n- Cria uma branch com a sua feature: `git checkout -b minha-feature`;\n- Faça commit das suas alterações: `git commit -m 'feat: Minha nova feature'`;\n- Faça push para a sua branch: `git push origin minha-feature`.\n\nDepois que o merge da sua pull request for feito, você pode deletar a sua branch.\n\n## 📝 Licença\n\nEsse projeto está sob a licença MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleticea%2Fnlw-spacetime-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleticea%2Fnlw-spacetime-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleticea%2Fnlw-spacetime-server/lists"}