Coder Social home page Coder Social logo

mahdi / pokespeare Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 77 KB

This is a simple REST API written in .NET 5 / ASP.NET WebAPI. It translates a Pokemon description (by getting its name) into its Shakespearean description!

License: Apache License 2.0

Dockerfile 1.29% C# 98.71%

pokespeare's Introduction

Pokespeare API v1.0

Docker Cloud Automated build Docker Cloud Build Status

This is a simple REST API written in .NET 5 / ASP.NET WebAPI. It translates a Pokemon description (by getting its name) into its Shakespearean description!

Build

You need to have Docker installed on your machine to build and run the container.

Build the image first:

docker build -t pokespeare .

Run

And, run it:

docker run --rm -p 5000:80 --name pokespeare pokespeare

Now the application is running at http://localhost:5000; to call the API method send a GET request to http://localhost:5000/pokemon/charizard

API Documentation

Swagger API docs are available at https://localhost:5001/swagger if you run the app without docker over HTTPS (docker run); I skipped explanations for HTTPs over docker as it's different on Windows and Linux and depends on various factors that are out of scope of purpose of this challenge.

Tests

Unit tests are available under tests\Pokespeare.Api.Tests; to run the tests using .NET CLI:

dotnet restore
dotnet build
dotnet test

Known Issues

  • Automatic image builds in Docker Hub is not working
  • Automatic "Open Issues" listing here is not working in GitHub Actions.
  • CodeQL code analysis is not working in GitHub Actions.
  • HTTPS over Docker.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.