To set up and configure VSMSAlert, please follow the instructions below:
- .NET Core SDK installed on your machine.
- Microsoft SQL Server or a compatible database management system installed and running.
- API credentials from Hubtel to access the Quick SMS API.
-
Clone the repository:
git clone https://github.com/kwabenasapong/VSMSAlert.git
-
Navigate to the project directory:
cd VALCOSMSAlertSystem
-
Install the project dependencies:
dotnet restore
-
Update the database connection string:
-
Open the
appsettings.json
file. -
Locate the
ConnectionStrings
section. -
Replace the placeholder values with your database connection details.
"ConnectionStrings": { "DefaultConnection": "Server=your-server-name;Database=your-database-name;User=your-username;Password=your-password;" }
-
-
Apply the database migrations:
dotnet ef database update
This will create the necessary tables in the database.
-
Update the Hubtel API credentials:
-
Open the
appsettings.json
file. -
Locate the
HubtelSettings
section. -
Replace the placeholder values with your Hubtel API credentials.
"HubtelSettings": { "ApiKey": "your-api-key", "ClientId": "your-client-id", "ClientSecret": "your-client-secret" }
-
-
Run the application:
dotnet run
The application will start running on
https://localhost:7071
by default. -
Access the application:
Open your web browser and navigate to
https://localhost:7071
to access the VSMSAlert application.
Additional configuration options can be found in the appsettings.json
file. You can modify these settings based on your requirements. Some of the key configuration options include:
Logging
: Configure logging options such as log levels and output destinations.EmailSettings
: Configure email server settings for email notifications.TwilioSettings
: If you want to use Twilio instead of Hubtel for SMS messaging, provide your Twilio API credentials.AdminSettings
: Configure the admin account details, such as the admin username and password.
If you encounter any issues during the setup or usage of VSMSAlert, you can refer to the following troubleshooting steps to help resolve common problems:
- Double-check the database connection string in the
appsettings.json
file to ensure it is correctly configured with the appropriate server name, database name, username, and password. - Verify that the database server is running and accessible from your machine.
- Ensure that the specified database and user have the necessary permissions to create and modify tables.
- If you are facing issues with the Hubtel Quick SMS API integration, verify that you have entered the correct API key, client ID, and client secret in the
appsettings.json
file. - Ensure that your Hubtel API credentials are valid and have the necessary permissions to send SMS messages.
- Ensure that you have installed the required .NET Core SDK version specified in the project's documentation.
- If you encounter any dependency-related errors during the
dotnet restore
command, verify your internet connectivity and try running the command again.
- Check the application logs for any error messages or exceptions that may indicate the cause of the problem. The logs can be found in the
Logs
directory or based on your configured logging settings. - Consult the project's documentation for any specific troubleshooting steps or known issues related to your problem.
- If the issue persists, consider reaching out to the project maintainers or the developer community for further assistance.
If none of the troubleshooting steps resolve your issue, please provide detailed information about the problem and any error messages encountered. This will help in diagnosing and resolving the problem effectively.
For more detailed instructions on setting up, configuring, and using VSMSAlert, please refer to the documentation.
If you encounter any issues during the setup process or have any questions, please feel free to reach out to us or consult the documentation for troubleshooting steps.