A Pokémon API written in C# using ASP.NET Web API 2. All the data are comes from veekun pokedex and are hosted in a MySQL server. The solution is created using Visual Studio 2017.
- Visual Studio 2017 version 15.7.3 or later with the following workloads:
- ASP.NET and web development
- .NET Core cross-platform development
- IIS server (optional)
- MySQL or MariaDB server
- .NET Core 2.1 SDK or later
- .NET Framework 4.7.2 or later
First of all, get the veekun pokedex and follow the instructions in order to setup the database.
Then, clone
this repository or download as zip
file.
- Using git:
git clone https://github.com/nlabiris/pokeapi.git
- Download zip and extract to your desired location
The best way to manage the solution and the underlying project is to use Visual Studio in order to setup the database settings, build the project and publish it to the desired directory in order to host it and make it accessible throught a web server.
However, a simple text editor, eg. VS Code, will do the job. (if you know what files need to change).
From the menu, click on Project > PokeAPI Properties..., click at the Settings tab and fill the DatabaseConnectionString
and DatabaseUsed
fields. For the connection string check MySQL connection strings for the appropriate format.
Enter MySQL
at the DatabaseUsed
field. The last option (LoggingLevel
) is not used at the moment.
Open the following files:
Web.config
Properties/Settings.settings
Properties/Settings.Designer.cs
Then make the necessary changes at the connection string and database options (like the Visual Studio step).
From the menu bar, click on Build > Publish PokeAPI to build the API using a Release configuration to the desired directory
Please see CHANGELOG for more information on what has changed recently.
- Nikos Labiris - Initial work - nlabiris
See also the list of contributors who participated in this project.
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the GNU Affero General Public License v3.0 (AGPLv3). Please see License File for more information.