{"id":21673692,"url":"https://github.com/luizengdev/next-trip","last_synced_at":"2026-04-09T11:05:47.082Z","repository":{"id":220549404,"uuid":"751930682","full_name":"luizengdev/next-trip","owner":"luizengdev","description":"Aplicação web que permite o usuário realizar reservas para viagens.","archived":false,"fork":false,"pushed_at":"2024-02-16T02:54:37.000Z","size":3516,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T09:42:04.855Z","etag":null,"topics":["next-auth","nextjs13","prisma-orm","stripe","supabase","tailwind-css"],"latest_commit_sha":null,"homepage":"https://travel-next-trips.vercel.app","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/luizengdev.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-02-02T16:32:16.000Z","updated_at":"2024-02-15T15:29:31.000Z","dependencies_parsed_at":"2024-11-25T13:50:55.054Z","dependency_job_id":null,"html_url":"https://github.com/luizengdev/next-trip","commit_stats":null,"previous_names":["luizengdev/next-trip"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizengdev%2Fnext-trip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizengdev%2Fnext-trip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizengdev%2Fnext-trip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizengdev%2Fnext-trip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luizengdev","download_url":"https://codeload.github.com/luizengdev/next-trip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244582850,"owners_count":20476233,"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":["next-auth","nextjs13","prisma-orm","stripe","supabase","tailwind-css"],"created_at":"2024-11-25T13:40:43.511Z","updated_at":"2025-12-30T22:33:03.773Z","avatar_url":"https://github.com/luizengdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Next Trips logo\" src=\"public/logo-github.png\" width=\"220px\"/\u003e\n\u003c/p\u003e\n\n## 🚀 Projeto\n\nAplicação web que permite que o usuário realize reservas para viagens.\n\n## 🎥 Visão do Projeto\nhttps://travel-next-trips.vercel.app/\n![image](https://github.com/luizengdev/next-trip/assets/47059188/5b6c79f0-1731-45bf-9f75-362da1f1428c)\n![image](https://github.com/luizengdev/next-trip/assets/47059188/ba40eb96-3d53-4775-9d42-2f98b59a5daa)\n\n\n\n## 💡 Funcionalidades\n\n- Buscar viagens por localização, por data inicial, orçamento máximo.\n- Ver detalhes de uma viangem, descrição da viagem, ver foto principal, destaques, preço por noite, data, hóspedes, diárias.\n- Reservar uma viagem.\n- Favoritar e visualizar as viagens favoritadas na página de favoritos.\n- Autenticação com o Google.\n- Garantir que a data selecionada não foi reservada por outro usuário.\n- Garantir que número máximo de hóspedes seja respeitado.\n- Ver viagens reservadas.\n- Fazer pagamento\n- Modal de confimação para cancelar viagem reservada.\n- Ao cancelar uma viagem, a data precisa ficar disponivel novamente.\n\n## 🛠️ Stack utilizada\n\nNext.js, React, TypeScript, Prisma, PostgreSQL, Next Auth, Tailwind CSS, React Hook Form, Stripe API, Google Maps API.\n\n| \u003cimg src=\"https://img.icons8.com/color/48/000000/nextjs.png\"/\u003e | \u003cimg src=\"https://img.icons8.com/plasticine/48/000000/react.png\"/\u003e | \u003cimg src=\"https://img.icons8.com/color/48/000000/typescript.png\"/\u003e | \u003cimg src=\"https://img.icons8.com/color/48/000000/prisma-orm.png\"/\u003e | \u003cimg src=\"https://img.icons8.com/color/48/000000/postgreesql.png\"/\u003e |\n|-----------------------------------------------------------------|---------------------------------------------------------------------|-----------------------------------------------------------------------|---------------------------------------------------------------------|-----------------------------------------------------------------------|\n| \u003cimg src=\"https://next-auth.js.org/img/logo/logo-sm.png\" width=\"32px\"/\u003e | \u003cimg src=\"https://img.icons8.com/color/48/000000/tailwindcss.png\"/\u003e | \u003cimg src=\"https://img.icons8.com/color/48/000000/react-native.png\"/\u003e | \u003cimg src=\"https://img.icons8.com/color/48/000000/stripe.png\"/\u003e | \u003cimg src=\"https://img.icons8.com/color/48/000000/google-maps.png\"/\u003e |\n\n\n## ⚙️ Variáveis de Ambiente\n\nPara rodar esse projeto localmente, é necessário adicionar as seguintes variáveis de ambiente no seu .env\n\n```\nDATABASE_URL = URL do seu banco de dados\n```\n\n```\nHOST_URL = URL do ambiente (development ou production)\n```\n\n```\nGOOGLE_CLIENT_ID = ID do cliente OAuth do Google\n```\n\n```\nGOOGLE_CLIENT_SECRET = Secret do cliente OAuth do Google\n```\n\n```\nNEXT_PUBLIC_GOOGLE_MAPS_API_KEY = Key da API do Google Maps\n```\n\n```\nSTRIPE_SECRET_KEY = Key secreta da API do Stripe\n```\n\n```\nNEXT_PUBLIC_STRIPE_KEY = Key pública da API do Stripe\n```\n\n```\nSTRIPE_WEBHOOK_SECRET_KEY = Key secreta do webhook do Stripe\n```\n\nÉ necessário instalar o [Stripe CLI](https://stripe.com/docs/stripe-cli?locale=pt-BR), logar no Stripe, rodar o script `stripe:listen` para obter a key e ouvir por eventos do Stripe, e então está tudo pronto para realizar pagamentos.\n\nPara realizar um pagamento de teste no Stripe é necessário utilizar um cartão de crédito de teste. Você pode encontrar os cartões de teste [aqui](https://stripe.com/docs/testing#cards).\n\n```\nNEXTAUTH_SECRET = Secret do Next Auth\n```\n\nPode ser qualquer string aleatória, é necessário apenas em produção, para ambiente de desenvolvimento é opcional.\n\n## 💻 Rodando localmente\n\nClone o projeto\n\n```bash\n  git clone https://github.com/joao-vitor-felix/traveling.git\n```\n\nEntre no diretório do projeto\n\n```bash\n  cd next-trip\n```\n\nInstale as dependências\n\n```bash\n  npm ou yarn install\n```\n\nÉ possível povoar o banco utilizando o `seed.ts` script em `src/app/lib`, para isso rode o comando\n\n```\nnpx prisma db seed\n```\n\nInicie o servidor\n\n```bash\n  yarn dev\n```\n\n## ⌛ Deployment\n\nEste repositório utiliza continuous deployment com a Vercel. Ou seja, toda vez que um commit é feito, o build para produção é feito automaticamente.\n\nThis is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\nThis project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizengdev%2Fnext-trip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluizengdev%2Fnext-trip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizengdev%2Fnext-trip/lists"}