| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
JokeAPI is a simple .NET 8.0 based CRUD Web API designed for managing and sharing jokes. Deployed as a containerized service in an Azure Linux App Service, it supports operations like fetching random jokes, managing categories, and voting on jokes.
Clone the repository:
git clone https://github.com/your-repository/JokeAPI.gitNavigate to the JokesAPI project directory:
cd src/JokesAPIRestore dependencies:
dotnet restoreConfigure the database connection:
Update the connection string in appsettings.json for PostgreSQL. Ensure the database exists in PostgreSQL with the corresponding name.
Apply database migrations:
dotnet ef database updateBuild the Docker image:
docker build -t jokeapi .Run the application:
docker run -p 8080:8080 jokeapiThe API will be accessible on http://localhost:8080.
Navigate to the terraform directory:
cd infra/terraformInitialize Terraform:
terraform initCreate an execution plan:
terraform planApply the plan to deploy to Azure:
terraform applyFor detailed instructions on SSH access to your custom container, refer to the Azure documentation.
This project is licensed under the MIT License - see the LICENSE.txt file for details.
| Back | FazBrowse Home | New Git URL |