Web API server for the client
- Download and install Docker.
- Local development will most likely want Docker Desktop.
- Run
docker compose -p rin_webapi upfrom thedockerfolder to start the dev stack. - Run SDBBrowser and load an
sdbfile. - Click
DBand enter the connection string:User ID=tmwadmin;Password=change;Host=localhost;Port=5434;Database=TMW;
- Click
Importand you should see the log importing the data, wait for it to finish. - Go to the
sqlfolder and runImportSchema.bat - Open
http://localhost:8081/browserin your browser and sign in to the postgres admin with the emailtmwlocaldev@tmwlocaldev.netand passwordtmwlocaldev- These are for local development only, CHANGE THEM if you deploy this.
- In the DB you should see 2 schemas
sdbandwebapi- The
publicschema can be ignored.
- The
- To have the game connect to this server open
Firefall.iniin your game install and setOperatorHost="https://localhost:5001"under the[Config]section.
- Compile the latest changes to the
RIN.WebAPIsolution. - Run the project as
RIN.WEBAPIorRIN.WebAPI CMD.- The difference between these two profiles is
CMDwill only launch RIN while the other profile will also launch Swagger (https://localhost:5001/swagger/index.html) in your browser for checking endpoints. - When prompted about trusting the
ASP.NET Core SSL Certificate, selectYes.- It is possible you will need to restart RIN/Docker/Firefall after installing the certificate for them to properly recognize it.
- Don't start PIN's WebHostManager when using PIN and RIN.WebAPI.
- The difference between these two profiles is
- You will most likely not need to restart
Dockerunless you make DB Schema changes.
If you have made db changes run sql/ExportSchema.bat and check in the webapi_schema.sql file to make sure the schema changes are shared.
- RIN is built on .NET 8.