https://github.com/timothyjan/tasktrackr
Project management application using Angular for user-friendly task tracking and C# .NET MVC with SQL Server for backend data management on AWS, enabling efficient project assignment, progress tracking, and team collaboration.
https://github.com/timothyjan/tasktrackr
Last synced: 5 months ago
JSON representation
Project management application using Angular for user-friendly task tracking and C# .NET MVC with SQL Server for backend data management on AWS, enabling efficient project assignment, progress tracking, and team collaboration.
- Host: GitHub
- URL: https://github.com/timothyjan/tasktrackr
- Owner: TimothyJan
- Created: 2024-11-13T06:41:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-08T18:39:32.000Z (over 1 year ago)
- Last Synced: 2025-01-31T06:08:20.186Z (over 1 year ago)
- Language: HTML
- Size: 16.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TaskTrackr
Task management application using ASP.NET Core, Entity Framework Core, Angular, Bootstrap, and SQL Server on AWS RDS, enabling efficient project assignment, progress tracking, and team collaboration.
Process:
- SQL Server Management Studio
- Connect to Server
- Server Type: Database Engine
- Server Name: localhost
- Authentication: Windows Authentication
- Connect
- Create a new Database
- In the Object Explorer, right-click on Databases and select New Database
- Database Name: TaskTrackrDb
- In the Object Explorer, right-click on Databases and select New Database
- Configure a User
- Expand the Security node.
- Right-click Logins and select New Login
- In the Login - New dialog:
- Login Name: Enter a username
- Authentication: Choose SQL Server Authentication and set a password.
- In the left panel, go to User Mapping, check your database (TaskTrackrDb), and assign the db_owner role.
- Configure the Connection String in appsettings.json
"DefaultConnection": "Server=(localdb)\\MSSQLLocalDB;Database=TaskTrackrDb;Trusted_Connection=True;"
- Connect to Server
- ASP.NET MVC
- Create Models(User, Project, ProjectTask) with data annotations.
- Create DTOs to transfer only the required data between the client and server. Also to avoid exposing the navigation properties that cause cycles.
- Add Required NuGet Packages
Microsoft.EntityFrameworkCoreMicrosoft.EntityFrameworkCore.SqlServerMicrosoft.EntityFrameworkCore.Tools
- Create DBContext to interact with the database. This serves as a bridge between the application and the database using Entity Framework Core.
- Create Repositories with async methods to implement data access logic using Entity Framework and interact with the database.
- Create Controllers for basic CRUD (Create, Read, Update, Delete) operations.
- Configure Database Connection. Set up the connections string to AWS SQL Server.
- Create migrations and apply to the database to create tables
- Add Migration: ~
dotnet ef migrations add InitialCreate - Apply Migration: ~
dotnet ef database update
- Add Migration: ~
- Seed database with dummy data
- Create SeedData.cs.
- Modify Program.cs to call the
SeedData.Initializemethod during application startup. - Add migrations and apply to the database to create tables
- Add Migration: ~
dotnet ef migrations add SeedDataMigration - Apply Migration: ~
dotnet ef database update
- Add Migration: ~
- Test all methods on Swagger.
- Frontend(Angular)
- Create models(User, Project, ProjectTask).
- Create services to handle communication with the database.
- Install Bootstap: ~
npm install bootstrap - Create components for project-list and user-list.
- Create environments for development and production, specifically for connection string.
Archived Process:
- SQL Server on AWS RDS
- CANCELED AWS DUE TO COSTS
- Go to AWS and create an account.
- Once logged in, go to the AWS Management Console and search for "RDS".
- Create and launch Database
- Connect to SQL Server Database - In Connectivity & security use the Endpoint (hostname) and ensure Port is set to 1433 (default for SQL Server).
- Allow Access from application - RDS Security Groups and add a rule to allow inbound traffic on port 1433 from IP.
- Test connection in SQL Server Management Studio
- Open SQL Server Management Studio(SSMS)
- Server Name: Your RDS Endpoint,1433 (e.g., yourdbinstance.abcd1234.region.rds.amazonaws.com,1433).
- Authentication: SQL Server Authentication.
- Username: The master username you created.
- Password: The password you set.
- Error with RDS SQL Server instance is using SSL encryption with a certificate that client machine does not trust by default. Configure client to trust the certificate.
- Download the AWS RDS Region Bundle link
- Install Certificate
- Retest connection
- Download the AWS RDS Region Bundle link
- Installed latest version of microsoft sql server management studio.
- Open SQL Server Management Studio(SSMS)
- Get connection string and add to appsettings.json
- CANCELED AWS DUE TO COSTS