PiwigoDirectorySync/README.md

36 lines
1.2 KiB
Markdown

# PiwigoDirectorySync
This application synchronizes the local directory structure with piwigo servers.
Each directory level gets created as album or sub album in piwigo.
## Building / tooling
### Restoring dotnet tools
In the root path you may just run the command ``dotnet tool restore`` to install all dotnet tools and extensions used in this project.
### Handle development secrets
To make sure no local development db configuration gets committed, we use the dotnet-user-secrets tool.
When you configure your environment for the first time and you do not like the default settings, use the following commands to set the secrets:
``
cd PiwigoDirectorySync
dotnet user-secrets set "DbProvider" "MariaDb"
dotnet user-secrets set "ConnectionStrings:MariaDb" "Server=localhost;User Id=photowfdev;Password=password123;Database=photowfdev"
``
You'll find your secrets under `~/.microsoft/usersecrets/c68c0447-8c7d-4e88-bcc6-96a9853828c7/secrets.json`
### Docker
Build the application and docker image for hosting using docker.
TODO: add some docker build details
### Publish
Build the application for manual installation using publish.
TODO: add some publish details