{"id":21235909,"url":"https://github.com/naimcode/authtest","last_synced_at":"2025-03-15T02:44:50.762Z","repository":{"id":191287030,"uuid":"684315408","full_name":"NaimCode/authTest","owner":"NaimCode","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-29T11:13:21.000Z","size":126,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-21T00:04:35.032Z","etag":null,"topics":[],"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/NaimCode.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}},"created_at":"2023-08-28T22:24:09.000Z","updated_at":"2023-08-29T11:36:36.000Z","dependencies_parsed_at":"2023-08-29T06:56:40.662Z","dependency_job_id":"5aa073fa-b32f-48e3-8285-2008b0a483ed","html_url":"https://github.com/NaimCode/authTest","commit_stats":null,"previous_names":["naimcode/authtest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaimCode%2FauthTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaimCode%2FauthTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaimCode%2FauthTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaimCode%2FauthTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NaimCode","download_url":"https://codeload.github.com/NaimCode/authTest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243676715,"owners_count":20329432,"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":[],"created_at":"2024-11-21T00:04:42.029Z","updated_at":"2025-03-15T02:44:50.740Z","avatar_url":"https://github.com/NaimCode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React + Express + MySQL\n\n## Getting Started\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/en/)\n- [Vite](https://vitejs.dev/)\n- [MySQL](https://www.mysql.com/)\n- [PNPM](https://pnpm.js.org/)\n- [TypeScript](https://www.typescriptlang.org/)\n- [Tailwind CSS](https://tailwindcss.com/)\n- [Express](https://expressjs.com/)\n- [React](https://reactjs.org/)\n- [Prisma](https://www.prisma.io/)\n- [PlanetScale](https://planetscale.com/)\n\n### Installation\n\n1. Clone the repo\n\n   ```sh\n   git clone  https://github.com/NaimCode/authTest\n   ```\n\n2. Install client packages\n\n   ```sh\n   pnpm install\n   ```\n\n3. Install server packages\n\n   ```sh\n   cd server\n   pnpm install\n   ```\n\n4. Create a `.env` file in the root of the server folder and add the following\n\n   ```sh\n   DATABASE_URL=\n   SESSION_SECRET=\n   JWT_SECRET=\n   CLIENT_URL= #dev http://localhost:5173\n   SMTP_USER=\n   SMTP_PASSWORD=\n   ```\n\n5. Create a `.env` file in the root of the client folder and add the following\n\n   ```sh\n   VITE_API_URL= #dev http://localhost:3000\n   ```\n\n## Setup Database (MySQL) with Prisma and PlanetScale\n\n1. Create a new database on PlanetScale and copy the connection string into the `.env` file. [PlanetScale](https://planetscale.com/)\n\n2. Push the schema to PlanetScale\n\n   ```sh\n   cd server\n   pnpm prisma db push\n   ```\n\n3. Generate type definitions\n\n   ```sh\n   pnpm prisma generate\n   ```\n\n4. To view the database\n\n   ```sh\n   pnpm prisma studio\n   ```\n\n## Usage\n\n1. Start the server\n\n   ```sh\n   cd server\n   pnpm dev\n   ```\n\n2. Start the client\n\n   ```sh\n   pnpm dev\n   ```\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## Contact\n\nNaim - [@naimcode](https://github.com/NaimCode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaimcode%2Fauthtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaimcode%2Fauthtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaimcode%2Fauthtest/lists"}