The development environment uses Secret Manager to store the SFox Api key. To configure your development environment:
- Run
dotnet user-secrets set "SFoxApi:ApiKey" "YOUR_API_KEY"
to set up your key. - Set the desired API endpoint in
appsettings.json
- Build the application
- Run the application
- Navigate to
https://localhost:5001/swagger
to view the documentation.
- Run
docker build -t sfox .
to build your container - Run
docker run -e SFoxApi__ApiKey=YOUR_API_KEY -p 80:80 sfox
to start the container. - Navigate to
http://localhost/swagger
to view documentation.