{"id":25443027,"url":"https://github.com/sdley/sdley-e-shop","last_synced_at":"2026-04-30T11:37:26.843Z","repository":{"id":277388339,"uuid":"932225061","full_name":"sdley/sdley-e-shop","owner":"sdley","description":"sdley-e-shop est une application de commerce electronique.","archived":false,"fork":false,"pushed_at":"2025-02-27T22:50:05.000Z","size":1303,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T07:45:45.630Z","etag":null,"topics":["mongodb","nextjs15","prisma","tailwindcss","typescript"],"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/sdley.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,"zenodo":null}},"created_at":"2025-02-13T15:17:42.000Z","updated_at":"2025-02-27T22:50:08.000Z","dependencies_parsed_at":"2025-03-21T02:31:04.570Z","dependency_job_id":null,"html_url":"https://github.com/sdley/sdley-e-shop","commit_stats":null,"previous_names":["sdley/sdley-e-shop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sdley/sdley-e-shop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdley%2Fsdley-e-shop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdley%2Fsdley-e-shop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdley%2Fsdley-e-shop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdley%2Fsdley-e-shop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdley","download_url":"https://codeload.github.com/sdley/sdley-e-shop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdley%2Fsdley-e-shop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32463892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["mongodb","nextjs15","prisma","tailwindcss","typescript"],"created_at":"2025-02-17T14:16:43.727Z","updated_at":"2026-04-30T11:37:21.832Z","avatar_url":"https://github.com/sdley.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sdley-e-shop\n\nsdley-e-shop is an online electronic e-shop.\n\n## Technologies used\n- **Next.js 15**: React framework for server-side rendering and static site generation.\n- **TypeScript**: Enhances JavaScript with static typing for better code reliability.\n- **Tailwind CSS**: Utility-first CSS framework for fast and responsive UI design.\n- **MongoDB**: NoSQL database for scalable and flexible data storage.\n- **Stripe**: Secure payment processing integration.\n- **Prisma**: ORM for efficient database management and queries.\n- **moment.js**: Library for date formatting and manipulation.\n- **React Hot Toast**: Lightweight notifications for better user feedback.\n- **v6.exchangerate-api.com**: API for real-time currency exchange rates.\n\n🚀 **Goal**: Performance, scalability, and a seamless user experience.\n\n---\n\n## 🚀 Steps to Configure and Run the Application\n\n### 1. Clone the Repository\n```bash\ngit clone https://github.com/your-repo.git\ncd your-repo\n```\n\n### 2. Install Dependencies\n```bash\nnpm install\n```\n\n### 3. Setup Environment Variables  \nCreate a `.env.local` file at the root of the project and configure the following variables:\n\n```env\n# MongoDB Atlas\nDATABASE_URL=\"mongodb+srv://\u003cusername\u003e:\u003cpassword\u003e@cluster.mongodb.net/\u003cdatabase\u003e?retryWrites=true\u0026w=majority\"\n\n# NextAuth\nNEXTAUTH_URL=\"http://localhost:3000\"\nNEXTAUTH_SECRET=\"\u003cyour-secret-key\u003e\"\n\n# Google OAuth 2.0\nGOOGLE_CLIENT_ID=\"\u003cyour-google-client-id\u003e\"\nGOOGLE_CLIENT_SECRET=\"\u003cyour-google-client-secret\u003e\"\n\n# Stripe API Keys\nSTRIPE_PUBLIC_KEY=\"\u003cyour-stripe-public-key\u003e\"\nSTRIPE_SECRET_KEY=\"\u003cyour-stripe-secret-key\u003e\"\n```\n\n### 4. Setup MongoDB Atlas\n\n1. Go to [MongoDB Atlas](https://www.mongodb.com/atlas) and create an account.\n2. Create a new cluster and database.\n3. Navigate to **Database Access** and create a user with read and write permissions.\n4. Under **Network Access**, allow your IP address (`0.0.0.0/0` for testing).\n5. Copy the connection string and update `DATABASE_URL` in `.env.local`.\n\n### 5. Setup Google OAuth 2.0\n\n1. Go to [Google Cloud Console](https://console.cloud.google.com/).\n2. Create a new project or select an existing one.\n3. Navigate to **APIs \u0026 Services \u003e Credentials**.\n4. Click **Create Credentials \u003e OAuth Client ID**.\n5. Configure the OAuth consent screen:\n   - Add your app name and authorized domains.\n   - Set **Application Type** to \"Web application.\"\n   - Add **Authorized redirect URIs**:\n     ```\n     http://localhost:3000/api/auth/callback/google\n     ```\n6. Copy the **Client ID** and **Client Secret** and update them in `.env.local`.\n\n### 6. Initialize Prisma and Database\n```bash\nnpx prisma generate\nnpx prisma db push\n```\n\n### 7. Run the Development Server\n```bash\nnpm run dev\n```\nOpen [http://localhost:3000](http://localhost:3000) in your browser.\n\n🚀 **Your application is now ready to use!**\n\n---\n\n## Copyright\n- Copyright [sdley](https://sdley.github.io/) 2024\n- https://sdley.github.io/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdley%2Fsdley-e-shop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdley%2Fsdley-e-shop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdley%2Fsdley-e-shop/lists"}