Quickstart
This page is the shortest path from source to a running instance on a development machine. Each step links to the fuller treatment.
1. Build
Section titled “1. Build”dotnet build Docsentry.slnx --configuration ReleaseTreatWarningsAsErrors is set for the whole solution, so any compiler warning fails the build.
A clean build is the expected outcome, not an aspiration.
2. Create and deploy the database
Section titled “2. Create and deploy the database”Connect to master with a privileged account, set the @DatabaseName value inside
Database/deploy/000_provision_database.sql, and run it.
Then apply the Identity migration, which owns the AspNet* tables:
dotnet ef database update --project src/Docsentry.Infrastructure --startup-project src/Docsentry.WebThen apply the numbered DMS scripts in Database/deploy/ in numeric order, starting with
001_schema_versions.sql. Full detail, including the checksum ledger and the two-principal
model, is in Database deployment.
Finish by running Database/verification/900_schema_contract.sql to confirm the schema matches
its contract.
3. Configure
Section titled “3. Configure”At minimum, provide a connection string. In development, user secrets are the convenient route:
dotnet user-secrets set "ConnectionStrings:DefaultConnection" "Server=(localdb)\MSSQLLocalDB;Database=Docsentry;Integrated Security=True;Encrypt=True;TrustServerCertificate=True" --project src/Docsentry.Web4. Seed the first administrator
Section titled “4. Seed the first administrator”No account exists yet. Supply both bootstrap keys and the application creates the administrator on startup:
dotnet user-secrets set "Bootstrap:AdminEmail" "admin@example.com" --project src/Docsentry.Webdotnet user-secrets set "Bootstrap:AdminPassword" "<a strong password>" --project src/Docsentry.WebThe password must be at least eight characters with upper case, lower case, and a digit.
5. Run
Section titled “5. Run”dotnet run --project src/Docsentry.Web/Docsentry.Web.csprojOpen the application, sign in with the bootstrap credentials, and you land on the dashboard.
6. Confirm it works
Section titled “6. Confirm it works”curl http://localhost:5109/api/v1/healthThen, in the browser: create a folder under Folders, upload a file into it, and confirm the document appears with a preview. That exercises storage, the upload allowlist, the scanner, and preview generation in one pass.
Running the tests
Section titled “Running the tests”dotnet test Docsentry.slnx --configuration ReleaseNext steps
Section titled “Next steps”- First login - roles, two-factor authentication, and creating other users.
- Folders and documents - the model you have just used.
- Deployment - what changes when this leaves your machine.