{"id":21235897,"url":"https://github.com/naimcode/stratagemstodo","last_synced_at":"2025-03-15T02:44:50.277Z","repository":{"id":243119097,"uuid":"811524713","full_name":"NaimCode/stratagemsTodo","owner":"NaimCode","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-06T22:24:51.000Z","size":167,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-21T00:04:32.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stratagems-todo.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/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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-06T19:06:50.000Z","updated_at":"2024-06-06T22:24:54.000Z","dependencies_parsed_at":"2024-06-06T21:02:04.825Z","dependency_job_id":"f2267966-dc33-4d79-8392-e57acdae2a19","html_url":"https://github.com/NaimCode/stratagemsTodo","commit_stats":null,"previous_names":["naimcode/stratagemstodo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaimCode%2FstratagemsTodo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaimCode%2FstratagemsTodo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaimCode%2FstratagemsTodo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaimCode%2FstratagemsTodo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NaimCode","download_url":"https://codeload.github.com/NaimCode/stratagemsTodo/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:37.602Z","updated_at":"2025-03-15T02:44:50.260Z","avatar_url":"https://github.com/NaimCode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React + Express + MongoDB\n\n## Getting Started\n\nhttps://stratagems-todo.vercel.app/\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/en/)\n- [Vite](https://vitejs.dev/)\n- [MongoDB](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- [Radix](https://www.radix-ui.com/)\n\n### Installation\n\n1. Clone the repo\n\n   ```sh\n   git clone  https://github.com/NaimCode/stratagemsTodo\n   ```\n\n2. Install client packages\n\n   ```sh\n   cd app\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=\n   ENV=\n   PORT=\n   MULTI_SESSIONS=\n   SESSION_DURATION=\n   API_KEY=\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=\n   VITE_API_KEY=\n   ```\n\n## Setup Database (MongoDB) with Prisma\n\n1. Create a new mongoDB database and copy the connection string into the `.env` file.\n\n2. Push the schema into the database\n\n   ```sh\n   cd server\n   pnpm db:push\n   ```\n\n3. Generate type definitions\n\n   ```sh\n   pnpm db:generate\n   ```\n\n4. To view the database\n\n   ```sh\n   pnpm 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   cd app\n   pnpm dev\n   ```\n   \n## Unit testing and end-to-end testing\n\n1. Server unit test\n\n   ```sh\n   pnpm test\n   ```\n\n2. client e2e test\n\n   Make sure to add a valid credential inside **e2e/todos.specs.ts** and **e2e/auth.specs.ts** for login e2e\n   ```sh\n   pnpm e2e:test\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%2Fstratagemstodo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaimcode%2Fstratagemstodo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaimcode%2Fstratagemstodo/lists"}