Skip to content

This is a website for a company that produces miniature scale models it was built with ASP.NET Core MVC, Web API, EF and AngularJS.

Notifications You must be signed in to change notification settings

lschmid83/Dustys-Corner

Repository files navigation

Dusty's Corner

This is a website I created for a company that manufactures miniature scale models.

It was developed in Visual Studio 2022 using the following technologies:

  • ASP.NET Core
  • MVC / Web API
  • Entity Framework
  • AngularJS
  • Bootstrap

You can view the finished website here.

Here are some screenshots of the website:

Database

You must first define the connection string for the database. In the Solution explorer expand the DustysCorner.DAL project and open the StoreContext.cs file. In the OnCofiguring method you will find the connection string which should look like this:

@"Data Source=YOUR_SERVER_NAME;Initial Catalog=DustysCorner;Persist Security Info=True;User ID=YOUR_USERNAME;Password=YOUR_PASSWORD"

Replace the data source, user id and password with your own database account credentials.

The database will be created and seeded automatically using the StoreDataInitializer class in development mode when you run the DustysCorner.Service project.

If you need to make changes to the database structure you can create a new migration script using the command from the Tools->NuGet Package Manage->Package Manager Console:

dotnet ef migrations add <migration name> -c DustysCorner.DAL.StoreContext

Running the Project

To run the website project in development mode you must first right click on the Solution Name in the Solution Explorer. In the Startup Project page you should select Multiple Startup Projects and change the Action for DustyCorner.MVC and DustysCorner.Service to Start. You can now click the run button and both projects will start.

Note

This is a project I created to help me learn AngularJS. I realise the API methods should normally be requested from the Angular controllers instead of initializing with JSON using ng-init on the views. I did this simply to demonstrate using the ASP.NET MVC framework and is not a recommended approach. Since creating this project I have learnt Angular 2+ which is a much better framework. Feel free to modify as you need.

About

This is a website for a company that produces miniature scale models it was built with ASP.NET Core MVC, Web API, EF and AngularJS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published