Execute docker-compose up or docker-compose up -build.Make sure to change directory to the root folder accountgo.To run everything (database, api, web) in docker container you can use docker-compose.yml This will return list of customers in JSON format. To test if Api is running correctly, you can simply call one GET endpoint.By default, port is open to 50 (http and https respectively). To change it to specific port, execute dotnet run -environment Development server.urls= It could be any port as you like, but the front-end is hard-coded to call api on port So change the front-end as too.To run in development mode, execute dotnet run -environment Development.The appsettings.json contain connectionstring but need to supply some values. Under Properties folder Use the launchsettings.json to change database connection DBSERVER, DBUSERID and DBPASSWORD. curl If you encounter some issues, the easy way for now is recreate your database and repeat the Publish Database section. To initialize a company, call the api endpoint directly from the browser or by using curl e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |