BirdTouch-WebAPI is a server that is consumed by Birdtouch Android app.
Server is written in .NET 5.0 using PostgreSQL database.
4050 to be free and not used by any app on the machine where docker daemon is running.env file (see Configuration section)docker-compose up -d from the root of this repodocker-compose ps to check if all services are up and running
database-migration service should be in State Exit 04050All SQL scripts used to create database and to insert necessary data are located in the migrations folder.
In order to add custom new scripts or execute database upgrade, please follow the following procedure:
Create new .sql script following the naming convention in the migrations folder - idea is that scripts are alphabetically sorted in order to have some sort of the order of execution.
Note that scripts that are once executed will not be executed again on the same database (to check if script is executed, script name is used)
When you have all the necessary scripts now added to the migrations folder, please execute:
docker-compose up database-migration --build
All of the configuration is done by editing .env file.
Recommended changes:
POSTGRES_PASSWORD and connection strings used to access the database.PGADMIN_DEFAULT_PASSWORD password used for accessing PgAdmin app.JWTSecurityKey that is used for hashing of the authorization tokens.Optional:
RemoveInactiveUsersRunEvery scheduled task that will check if there are inactive usersRemoveInactiveUsersRemoveUsersOlderThan set how many hours of inactivity are considered for user to be in inactive stateIf you are using WSL2 on Windows10 and have Linux container where you installed docker, in order to access Birdtouch WebAPI (e.g. from the Birdtouch Client running on Android emulator) you need to found out the WSL2 session's IP address.
Do the following procedure:
ifconfignet value of the eth0:, for example it would be 172.22.200.173172.22.200.173:4050