Closed mdewey closed 5 years ago
For this assignment, you should take your safari API that was already created, and create a simple react app that consumes that API.
Jungle
Desert
CountOfTimesSeen
lions
tigers
bears
Here are the interesting commands you will need for tonight's assignment
To add Entity Framework to your project:
dotnet add package Microsoft.EntityFrameworkCore.Design --version 2.1.3 dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 2.1.2
To create your database:
createdb <<DatabaseName>>
To create the DbContext
dotnet ef dbcontext scaffold "server=localhost;database=<<DatabaseName>>" Npgsql.EntityFrameworkCore.PostgreSQL -c <<DatabaseName>>Context
- Add a migration:
dotnet ef migrations add AddBaordGameTable
- Update your database
dotnet ef database update
- Documentation: [Dotnet EF CLI Docs](https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet)
Explorer mode complete.
https://github.com/StPeteFrank/my-api-react-app
Your homework was marked: Meets Expectations
“Well done!” — via Gavin Stark
For this assignment, you should take your safari API that was already created, and create a simple react app that consumes that API.
Objectives
Requirements
Explorer Mode
Jungle
Desert
.CountOfTimesSeen
and get a total number of animals seenCountOfTimesSeen
oflions
,tigers
andbears
Adventure Mode
Additional Resources
.NET
Here are the interesting commands you will need for tonight's assignment
To add Entity Framework to your project:
To create your database:
To create the DbContext
dotnet ef migrations add AddBaordGameTable
dotnet ef database update