Exercise in creating the same MVC project and many-to-many database twice, in C# and Ruby This app uses a homemade API to serve lessons and tracks, which have a many-to-many relationship, to views in an MVC app.
- MySql
- MySqlWorkbench
- C# (if on a Mac device)
- Navigate to the CSharp folder
- Create a schema named 'curriculum' (or your choice, updating
appsettings.json
accordingly) using the following steps: ((This might be unnecessary)) -
- 1) Open MySqlWorkbench.
-
- 2) Right click on the schemas, select 'Create Schema', name it 'curriculum', and hit 'apply'.
-
- _3) run
dotnet ef migrations add {Your Choice}
anddotnet ef database update
to get the database ready
- _3) run
- Navigate to the CurriculumApi folder, and run
dotnet watch run
to enable the API to serve data. - Navigate to the Curriculum folder, and run
dotnet watch run
to start the MVC application. - Navigate to your localhost at 8080
- Navigate to the Ruby folder
- TBD