# Application structure

## Application file structure

When you create your widgets and layout files, you place them in folders under your Renderer project's root folder. We recommend having a structure similar to the following:

```Text
├wwwroot
├───css
├───js
├───ViewComponents
├──────WidgetNameViewComponent.cs
├───Models
├──────WidgetName
├─────────WidgetModel.cs
├─────────IWIdgetModel.cs
├───ViewModels
├──────WidgetNameViewModel.cs
├───Entities
├──────WidgetNameEntity.cs
├───Views
├──────Shared
├─────────MyLayout.cshtml
├─────────Components
├────────────WidgetName
├───────────────Default.cshtml
├───appsettings.json
└───Startup.cs
```

## Project template

You can use the project template, provided in Sitefinity's GitHub repository to get you started with the overall structure of the Renderer project.

* The overall project folder structure is configured for developing with the Sitefinity ASP.NET Core Renderer.
* The required service registrations and pipeline configurations are added to the `Program.cs` file.
* There is a sample layout file included, which has examples for referencing JavaScript and CSS files.
* The launch settings file is configured to host the application with ports 5000 for HTTP and 5001 for HTTPS.

### Use the template

To use the template to start your development, perform the following:

1. Download the [Starter template](https://github.com/Sitefinity/sitefinity-aspnetcore-mvc-samples/tree/master/src/starter-template) from Sitefinity's GitHub repository.
2. Open the project in Visual Studio.
3. In the `appsettings.json` file, in `"Sitefinity"` section, change the `"Url"` to point to your Sitefinity CMS application.
