Skip to content

hammasattila/Sapientia-dotNet2021-BlazorApp

Repository files navigation

.NET Blazor Application

During .NET Technologies course we developed a simple Blazor Application in which we learnd the basics, like NuGet Packages, how to create pages, fetch data from an API, or how to manage databases inside a .NET project.

Compiling and running the app

You have to insert your API key into the App.config file found in the Blazor Application project, so your configuration file should look like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="BaseUrl" value="https://api.themoviedb.org/3" />
    <add key="ApiKey" value="1d92fq35390e7f3e169b9b47420bftfs" /> <!-- Your API key here. -->
  </appSettings>
</configuration>

You can obtain this key by creating an account at The Movie Database and after that generate your API key.

References

Useful commands

Packages needed for manageing the SQLite database:

Install-Package Microsoft.EntityFrameworkCore.Sqlite
Install-Package Microsoft.EntityFrameworkCore.Design
Install-Package Microsoft.EntityFrameworkCore.Tools

Generating the SQLite database from a class:

Add-Migration InitialCreate
Update-Database

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks