https://github.com/gaprogman/pokeblazor
A Blazor app for requesting data from the Pokemon API
https://github.com/gaprogman/pokeblazor
Last synced: 10 months ago
JSON representation
A Blazor app for requesting data from the Pokemon API
- Host: GitHub
- URL: https://github.com/gaprogman/pokeblazor
- Owner: GaProgMan
- License: mit
- Created: 2018-04-01T00:07:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-19T19:44:16.000Z (almost 7 years ago)
- Last Synced: 2025-01-15T23:19:02.254Z (over 1 year ago)
- Language: HTML
- Homepage: https://pokeblazor.azurewebsites.net/
- Size: 599 KB
- Stars: 8
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PokeBlazor
A simple example of how Blazor can be used to build single page applications against a known API - in this case the Pokemon API
## Licence Used
[](https://opensource.org/licenses/MIT)
See the contents of the LICENSE file for details.
## Support This Project
If you have found this project helpful, either as a library that you use or as a learning tool, please consider buying me a coffee:
## Pull Requests
[](http://makeapullrequest.com)
Pull requests are welcome, but please take a moment to read the Code of Conduct before submitting them or commenting on any work in this repo.
## Docker Image
PokeBlazor is now available on docker hub at [gaprogman/pokeblazor](https://hub.docker.com/r/gaprogman/pokeblazor/). To pull the latest version of the image, run the following command:
```
docker pull gaprogman/pokeblazor
```
(the above assumes that you have docker installed and set up on your machine)
To run the image, issue the following command:
```
docker run -d -p 8080:5000 --name pokeblazor gaprogman/pokeblazor
```
The above command will:
- Start a new container called `pokeblazor`
- Run the `gaprogman/pokeblazor` image within it
- Detach the terminal from the new container
- Use port 8080 on the host and port 5000 on the container
## Requirements
The following software needs to be installed:
- [.NET Core SDK 2.1 or greater](https://dot.net/core)
- [Visual Studio 15.7 or greater](https://www.visualstudio.com/vs/preview)
## Building and Running the Project
If the sln file is opened with Visual Studio 15.7 or greater, then hitting Ctrl+F5 (or just F5) will start PokeBlazor.Server, which will start the application.
If running from the command line, you will need to cd into the PokeBlazor.Server directory and run:
``` shell
dotnet run
```
## Publishing
A Dockerfile has been provided, so you can publish and run a container like so. The example below is accessible on http://localhost:8080
``` shell
docker build -t pokeblazor .
docker run -p 8080:80 pokeblazor
```
