{"id":20624370,"url":"https://github.com/benjaminparisel/random-miam","last_synced_at":"2026-04-23T09:34:56.237Z","repository":{"id":215643295,"uuid":"739442154","full_name":"benjaminParisel/random-miam","owner":"benjaminParisel","description":"A nextJs website to choose randomly recipes from a list","archived":false,"fork":false,"pushed_at":"2024-01-18T12:54:02.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T08:39:29.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://random-miam.vercel.app","language":"TypeScript","has_issues":false,"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/benjaminParisel.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-01-05T15:20:19.000Z","updated_at":"2024-01-07T18:28:48.000Z","dependencies_parsed_at":"2024-11-16T12:31:36.355Z","dependency_job_id":"013c5b23-5a48-478e-b843-53fa763177d1","html_url":"https://github.com/benjaminParisel/random-miam","commit_stats":null,"previous_names":["benjaminparisel/random-miam"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benjaminParisel/random-miam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminParisel%2Frandom-miam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminParisel%2Frandom-miam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminParisel%2Frandom-miam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminParisel%2Frandom-miam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjaminParisel","download_url":"https://codeload.github.com/benjaminParisel/random-miam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminParisel%2Frandom-miam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32174743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"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":[],"created_at":"2024-11-16T12:30:50.629Z","updated_at":"2026-04-23T09:34:56.222Z","avatar_url":"https://github.com/benjaminParisel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This 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# Docker image\n\nYou can run `docker build -t random-miam .` then `docker run -p 3000:3000 random-miam`\n\n# Setup Authentification on local dev\n\nIf you face any of the following errors, Follow these steps and the error will be fixed as My one was fixed.\n\n1. code: 'JWT_SESSION_ERROR' name: 'JWEDecryptionFailed\n\n2. MissingSecret [MissingSecretError]: Please define a `secret` in production.\n\n3.ERROR[next - auth][error][NO_SECRET];\nStep 1 Generate a secret:\n\nTo do this, open a terminal under Linux (In Window Open Hyper or CMD) and type : openssl rand -base64 32\nThe output of this order will be your secret, a string like : Ey7nTKnggBc0bRN8WUjyShw2qzOZ6KW4fUyqcKBePxY=\n\n2- Place this secret in an environment variable:\n\nI recommend you to put this secret in an environment variable. You can use the .env file (or .env.local) or directly your next.config.js file. Here I take the example of the next.config.js file that I prefer to work with. In this file, add the line with the value NEXTAUTH_SECRET and your secret.\nMy Example in .env file: NEXTAUTH_SECRET='78zFZvyspgAIBXPKdA0AhFqcNWXX16/CEmBFOHU3iOg='\n\n3- Adding the secret in the next-auth configuration:\n\nOnce your secret is set as an environment variable, next-auth must be able to access it. Under NextJS, environment variables are accessible on the server side through the process.env object and it is the NEXTAUTH_SECRET property that we are interested in here,\nOn your application, go to the file /pages/api/auth/[...nextauth].js, and add at the same level as providers and your possible callbacks, the value:\n\nsecret: process.env.NEXTAUTH_SECRET,\n4- Relaunch a build:\n\nFinally, remember to run a new npm run build and you’re all set 🥳 !\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\n# Prisma\n\nA [article](https://vercel.com/guides/nextjs-prisma-postgres) to explain what is needed to connected an application to a Vercel PostreSql databatabse\n\nCommands:\n\n- pnpx prisma db push\n- pnpx primsa generate\n\n## Links\n\n-https://vercel.com/guides/nextjs-prisma-postgres\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminparisel%2Frandom-miam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminparisel%2Frandom-miam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminparisel%2Frandom-miam/lists"}