Home > front end >  Backend in folder and frontend in another folder
Backend in folder and frontend in another folder

Time:07-10

simple question how to separate backend and frontend files in asp.net core i want backend and frontend folders to keep things organized

my project uses asp.net core with blazor the structure right now is like this

enter image description here

CodePudding user response:

Well, based on your current scenario and project structure you could follow the below structure to make a cleaner project architecture.

Blazor Project Structure:

enter image description here

Note:

You have to take a solution under that solution you should take one client project and one server project and it will help to distinguish your front-end and backend code. If you want to share common stuff between them you could add an additional class library as well. You could refer to this example for more details

  • Related