{"id":25181679,"url":"https://github.com/nankoviliya/lifesync","last_synced_at":"2025-10-26T23:04:01.072Z","repository":{"id":272358344,"uuid":"882059644","full_name":"nankoviliya/LifeSync","owner":"nankoviliya","description":"Personal tools application","archived":false,"fork":false,"pushed_at":"2025-03-22T10:51:54.000Z","size":534,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T11:30:41.891Z","etag":null,"topics":["asp-net-core","csharp","mssql","personal-website","react"],"latest_commit_sha":null,"homepage":"","language":"C#","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/nankoviliya.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-11-01T19:44:27.000Z","updated_at":"2025-03-15T22:36:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"817ed06f-2981-4d18-be30-53b85b406f20","html_url":"https://github.com/nankoviliya/LifeSync","commit_stats":null,"previous_names":["nankoviliya/lifesync"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nankoviliya%2FLifeSync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nankoviliya%2FLifeSync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nankoviliya%2FLifeSync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nankoviliya%2FLifeSync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nankoviliya","download_url":"https://codeload.github.com/nankoviliya/LifeSync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128753,"owners_count":20888235,"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":["asp-net-core","csharp","mssql","personal-website","react"],"created_at":"2025-02-09T17:18:35.515Z","updated_at":"2025-10-26T23:03:56.034Z","avatar_url":"https://github.com/nankoviliya.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LifeSync\n\n## Table of Contents\n\n- [Project Overview](#project-overview)\n- [Features](#features)\n- [Technologies Used](#technologies-used)\n- [Setup and Installation](#setup-and-installation)\n- [Running the Application](#running-the-application)\n- [Quick Start with LifeSync StartupScripts](#quick-start-with-lifesync-startupscripts)\n\n## Project Overview\n\nLifeSync aims to provide a unified platform for managing personal tasks on a daily basis. The application is divided into three main projects:\n\n1. **LifeSync.API**: The backend API developed using .NET, responsible for handling business logic and data management.\n2. **LifeSync.Client**: The frontend application built with React and TypeScript, offering an intuitive user interface for interacting with the API.\n3. **LifeSync.Tests.Unit**: Unit tests written in .NET xUnit to ensure code reliability and maintainability.\n\n## Features\n\n- **Personal Finance Management**: Track income and expenses.\n- **User Profile**: Track and manage personal balance and other info.\n- **User Authentication**: Secure login and user management.\n\n## Technologies Used\n\n### Backend\n- .NET 9\n- ASP.NET Core\n- Entity Framework Core\n\n### Frontend\n- React\n- TypeScript\n\n### Testing\n- xUnit\n\n### Database\n- SQL Server\n\n## Setup and Installation\n\nFollow these steps to set up your development environment for LifeSync.\n\n### 1. Install and Configure MSSQL Developer Edition\n\n1. **Download \u0026 Install:**\n   - Download [MSSQL Developer Edition](https://www.microsoft.com/en-us/sql-server/sql-server-downloads) and run the installer. Follow the prompts in the installation wizard.\n\n2. **Configure the Server:**\n   - Launch SQL Server Management Studio (SSMS) and connect to your server instance (typically `localhost` on port `1433`).\n   - *(Optional)* Adjust the authentication mode (Windows or Mixed Mode) as needed.\n\n3. **Verify the Connection:**\n   - Ensure the server is running and you can connect to it.\n\n---\n\n### 2. Configure Local Secrets for ASP.NET Core\n\nTo securely store sensitive information (e.g., JWT secret, database credentials), use ASP.NET Core’s user secrets.\n\n1. **Initialize User Secrets:**\n   - Open a terminal in your ASP.NET Core project folder (the folder containing your `.csproj` file) and run:\n     ```bash\n     dotnet user-secrets init\n     ```\n\n2. **Add Your Local Secrets:**\n   - Create or update your local secrets with the following JSON (replace placeholder values with your actual credentials):\n     ```json\n     {\n       \"AppSecrets\": {\n         \"JWT\": {\n           \"SecretKey\": \"INSERT_YOUR_SECRET\",\n           \"Issuer\": \"LifeSyncApp\",\n           \"Audience\": \"LifeSyncAppUsers\",\n           \"ExpiryMinutes\": 60\n         },\n         \"Database\": {\n           \"Username\": \"INSERT_YOUR_USERNAME\",\n           \"Password\": \"INSERT_YOUR_PASSWORD\",\n           \"Engine\": \"\",\n           \"Host\": \"localhost\",\n           \"Port\": 1433,\n           \"DbInstanceIdentifier\": \"LifeSync\"\n         }\n       }\n     }\n     ```\n   - Alternatively, set individual secrets via the command line:\n     ```bash\n     dotnet user-secrets set \"AppSecrets:JWT:SecretKey\" \"YOUR_SECRET_KEY\"\n     dotnet user-secrets set \"AppSecrets:Database:Username\" \"YOUR_DB_USERNAME\"\n     dotnet user-secrets set \"AppSecrets:Database:Password\" \"YOUR_DB_PASSWORD\"\n     ```\n   **Important:** User secrets are stored locally (typically under your user profile) and are not committed to source control.\n\n   For more details, refer to [Microsoft's documentation on Secret Manager](https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets).\n\n---\n\n### 3. Apply Entity Framework Core Migrations\n\n1. **Update the Connection String:**\n   - Ensure your ASP.NET Core configuration (in *appsettings.json* or via user secrets) correctly points to your `LifeSync` MSSQL database.\n\n2. **Run Migrations:**\n   - Open a terminal in your project’s solution directory and run:\n     ```bash\n     dotnet ef database update\n     ```\n   - This command applies all pending EF Core migrations to the `LifeSync` database.\n\n   For further information, see the [EF Core Migrations documentation](https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/).\n\n---\n\n## Running the Application\n\n### 1. Run the Backend API\n\n1. **Start the API:**\n   - Navigate to your ASP.NET Core backend project folder.\n   - Run:\n     ```bash\n     dotnet run\n     ```\n   - Your backend server will start (by default, it listens on a port such as `http://localhost:5000` or as configured in your project).\n\n2. **Verify the API:**\n   - Open your browser and navigate to the API’s URL (e.g., `http://localhost:5000`) to confirm that it is running properly.\n\n---\n\n### 2. Run the React Frontend\n\n1. **Install Dependencies:**\n   - Navigate to your React project folder.\n   - Run:\n     ```bash\n     npm install\n     ```\n\n2. **Start the Frontend:**\n   - Once the dependencies are installed, run:\n     ```bash\n     npm start\n     ```\n   - The frontend should start automatically (typically on port 3000 or 4200). If it doesn’t open automatically, navigate to the URL provided in the terminal.\n\n---\n\n## Quick Start with LifeSync StartupScripts\n\nInstead of running the backend API and React frontend manually, you can simply use the provided LifeSync shortcut located in the `LifeSync.StartupScripts` folder. This shortcut automates the process of launching both the backend and frontend with one click.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnankoviliya%2Flifesync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnankoviliya%2Flifesync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnankoviliya%2Flifesync/lists"}