The "Fitness Home" gym management system is a solution for simplifying operations within a gym environment designed by a group of students of the 17th Batch of the Diploma in Information Technology program at Esoft Metro Campus Gampaha Branch. The objective of this system is to simplify operations within a gym environment by providing a user friendly interaction for members, trainers, and administrators.
Application
Documentation Website
-
Automatic Login: If the user has already logged in earlier, they are directly taken to their dashboard. The application directly takes them into their account as the email and password stored in the
App.config
file from the previous login provide direct access, and they need not authenticate themselves again. -
New Member Self-Registration: This facility offered by Fitness Home allows the new members to fill in their registration information, choose a membership plan, and even pay for the membership and admission fees while enrolling.
-
Trainer Functions: The trainers shall be able to conduct classes, discuss things with the members, and assess the progress of every member in their fitness by setting daily calorie goals, activities, height, and weight metrics.
-
Admin Dashboard: The system offers a dashboard where all the activities around the gym can be tracked, and profile information reviewed for the administrators.
Color | Hex |
---|---|
Background Color | #0D0D0D |
Accent Color | #A1D200 |
Text Color | #FFFFFF |
To run this project, you need to set up the following configuration in the App.config
file located in the fitness-home
directory. This configuration includes database connection settings and user credentials.
-
Open the
App.config
file:<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> </startup> <appSettings> <add key="DB_HOST" value="METHSIE\SQLEXPRESS" /> <add key="DB_USER" value="db_user" /> <add key="DB_PASS" value="GymApp!23$7" /> <add key="DB_NAME" value="fitness-home" /> <add key="USER_EMAIL" value="" /> <add key="USER_PASSWORD" value="" /> </appSettings> </configuration>
-
Set
DB_HOST
to your SQL Server instance (i.e. Server name used when connecting to the SSMS). -
Create a new SQL Server user:
- Open SQL Server Management Studio (SSMS) and connect to your SQL Server instance.
- In Object Explorer, expand your server and navigate to
Security > Logins
. - Right-click Logins and select New Login.
- Enter the following credentials:
- Login name:
db_user
- Password:
GymApp!23$7
- Login name:
- Under Server Roles, assign the user the necessary permissions, such as
db_datareader
anddb_datawriter
, to allow read and write access to the database. - Click OK to create the user.
- Right click on the Server, navigate to
Properties > Security
and ensure SQL Server and Windows Authentication mode is enabled.
By following these steps, you will configure the necessary environment variables for the project to connect to the database and support user authentication.
To run this project, you need to have the following tools installed:
-
.NET SDK
Download and install the .NET SDK (version 6.0 or later) from the official .NET website:
https://dotnet.microsoft.com/download -
Visual Studio
- Install Visual Studio 2022 (or later) with the .NET desktop development workload.
- You can download Visual Studio from:
https://visualstudio.microsoft.com/downloads
-
SQL Server
- Install Microsoft SQL Server (2019 or later) for database management.
- You can download the SQL Server Express edition from:
https://www.microsoft.com/en-us/sql-server/sql-server-downloads
-
SQL Server Management Studio (SSMS)
- Install SSMS to manage your SQL Server instance and execute the initialization script.
- Download SSMS from:
https://aka.ms/ssmsfullsetup
Once these prerequisites are installed, you can proceed to clone the project and set up the database.
- Clone the project
git clone https://github.com/NethminaGunasekara/fitness-home.git
- Navigate to the project directory
cd fitness-home
- Open the solution in Visual Studio (
fitness-home.sln
)
- Set up sample data, including an admin account, a trainer account, and membership plans:
- Open SQL Server Management Studio (SSMS)
- Connect to your SQL Server instance.
- Execute the SQL script located at
assets/scripts/initialize.sql
by opening and executing it in SSMS. This will create initial test data for the gym management system.
- Build and Run the Application
- In Visual Studio, go to "Build > Build Solution" or press
Ctrl+Shift+B
to build the solution. - Click Start or press F5 to run the application.
-
Is this project complete?
- Although we have completed the member dashboard and member registration, there are still many features to develop within the admin and trainer dashboards of our gym management system. These will be added progressively through our team's collaborative efforts.
- Shanuka Ravishan - @.shanu._a. - shanukaravishan01@gmail.com
- Nethmina Gunasekara - @nethminagunasekara - nethminagunasekara01@gmail.com
We are grateful to all the following resources and libraries that contributed in making this project possible:
- SVG Repo - For providing high quality SVG icons featured in the UI.
- Awesome README Template by Louis3797 - For the creative layout and design of READMEβs template.