The application serves as the backend component of the GitlabComments application.
The application can only be used as the backend component of a web application, i.e., as a web API.
For the client-side (UI), you need to use the corresponding application.
The application can be installed using IIS or other methods that support deploying ASP.NET applications.
- Database Server
- A database must exist in the DBMS where the application data will be stored.
- A user account with full access to the database must be created in the DBMS.
To install, download the files for the required version of the application (see the application releases page).
-
Execute all scripts from the
\SqlScripts
folder in the database. If errors occur, abort the installation process and contact the publisher (application author). -
Copy the application files to the folder where the application will be located.
-
In the
appsettings.json
file, fill in theDefaultConnection
setting in theConnectionStrings
section according to the database connection information from the prerequisites section.For example:
"DefaultConnection": "Server=MyServer;Database=GitlabComments;User Id=user;Password=password;MultipleActiveResultSets=true"
-
To use the client-side, place the contents of the folder from the corresponding client-side application release in the
\ClientApp
folder. -
Start the application (depending on the deployment type: either IIS or dotnet).
- Stop the running application.
- Back up the database and the application folder to a separate directory.
- Completely delete the contents of the application folder except for the
ClientApp
folder. - Move the files from the new version of the application to the application folder.
- In the
appsettings.json
file, transfer your customizations (including connection settings) from the backup folder (step 1) to the existing settings, without breaking the file format or the set of settings. - Execute all scripts from the
\SqlScripts
folder in the database. If errors occur, abort the installation process and contact the publisher (application author). - Start the application (depending on the deployment type: either IIS or dotnet).
If errors occur during the update process, restore the application state from the backup directory (step 1) and contact the publisher (application author).
The application supports configuration by editing the appsettings.json
file.
For development, the following programs must be installed:
- dotnet
- docker
The database for development can be created either locally or via the docker-compose.yml
file using the command:
docker-compose up -d
This command will create two Docker containers:
- A container with PostgreSQL (accessible at
localhost:5400
, user:dev
, password:123
, database name:gc.dev
). - A container with MSSQL (accessible at
localhost:5401
, user:sa
, password:Pass_Word!12345678
).- After creating the Docker container, you need to manually create the database by executing a T-SQL query.
The containers use Docker volumes, so they can be safely restarted.
Currently (version 1.5), the solution should work on both PostgreSQL and MSSQL.