Envision Studio Pokemon API Assessment
Before you begin, ensure you have met the following requirements:
- .NET SDK: You need to have the .NET SDK installed. You can download it from dotnet.microsoft.com.
To set up and run this project, follow these steps:
- Clone the repository:
git clone https://github.com/m1771vw/EnvisionStudioPokemonAPI.git
- Navigate to the project directory:
cd EnvisionStudioPokemonAPI
- Restore dependencies: Use the following command to restore the project dependencies:
dotnet restore
- Build the project: Build the project using the following command:
dotnet build
This project uses Entity Framework Core with SQLite as the database provider. Follow these steps to set up and configure the database:
Make sure you have the .NET CLI installed on your system.
- Open a terminal and navigate to the project directory:
cd EnvisionStudioPokemonAPI
- Run the following command to apply migrations using the dotnet-ef global tool:
dotnet ef database update
If the dotnet-ef global tool is not installed on your system, you can install it using the following command:
dotnet tool install --global dotnet-ef
Another alternative is to open the EnvisionStudioPokemonAPI.sln
and in the Package Manager Console
run Update-Database
- Run the project: To run the project, use the dotnet run command:
dotnet run
This will start your application, and you can access it by opening a web browser and navigating to http://localhost:44360 or https://localhost:7182.
Another alternative is to open the EnvisionStudioPokemonAPI.sln
and press F5 or press EnvisionStudioPokemonAPI at the top with the green button.
You might have to select IISExpress and run it that way.
- Access the application: Once the application is running, open your web browser and go to http://localhost:44360 or https://localhost:7182 to access the application.
Apologies in advance, I only worked on it for a couple days and probably spent maybe 8 to 12 hours on this. Never used Razor pages before so I had to pick it up as I went.
There's no proper error handling and no loading animations.
Am open to discussing more about design choices in the future.
Definitely made some shortcut decisions to make it work.
Also not familiar with SQLITE so I don't know if the set up instructions are correct but hopefully the migration works fine.