Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koribot/.net-----webapi----setup
I am trying to create a template environment for me when I am working with dotnet (.net)
https://github.com/koribot/.net-----webapi----setup
Last synced: 7 days ago
JSON representation
I am trying to create a template environment for me when I am working with dotnet (.net)
- Host: GitHub
- URL: https://github.com/koribot/.net-----webapi----setup
- Owner: koribot
- Created: 2024-07-15T14:10:24.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T08:04:16.000Z (4 months ago)
- Last Synced: 2024-07-18T19:19:46.237Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### EXECUTABLES REFERENCE
- watch.exe ` -> optional`
- dotnet watch --project ``
- `` is optional, it has defaultDirectory
- defaultDirectory is at `Program/program.csproj`
- run.exe ` -> optional`
- dotnet run --project ``
- `` is optional, it has defaultDirectory
- defaultDirectory is at `Program/program.csproj`### FOLDER STRUCTURE
📁 Program
## Contains
- 📁 assets
- ***This is where you store staticfiles that will be sent on browser***
- 📁 obj folder
- 📁 bin folder
- 📁 properties folder
- ***FOR CONFIG RELATED FILES SUCH AS***:
- `launchSettings.json`: This file is used to configure the launch settings for the project when you run it from within a development environment, such as Visual Studio or Visual Studio Code. The file allows you to specify various settings, such as the launch URL, environment variables, and command line arguments, for the project.
- `AssemblyInfo.cs`: This file contains metadata about the assembly, such as the version number, culture, and copyright information. This metadata is used by the .NET runtime to identify and load the assembly, and can also be used by tools and libraries to provide additional information about the assembly.
- `appsettings.json`: This file is used to store configuration settings for the project, such as database connection strings, API keys, and other settings that can be customized for different environments. The settings in this file can be accessed at runtime by the project's code to customize its behavior.
- `Web.config`: This file is used to configure the behavior of a web application that is hosted in IIS (Internet Information Services). The file contains settings for various aspects of the application, such as security, authentication, and caching, and can be used to customize the behavior of the application in different environments.
- 📜 program.cs
```
Entry point
```
- 📜 program.csproj
```
Used by .net to build the project, resolve dependencies and it contains information about
the project, such as the target framework and the list of dependencies.
```📁 src
***You can put any file or folder here such as:***
- Controllers: This folder contains the controller classes that handle HTTP requests and responses. Each controller class corresponds to a specific resource or endpoint in the API.
Services: This folder contains the service classes that implement the business logic of the application. The service classes are typically used by the controller classes to perform operations such as data access, validation, and authentication.
- Models: This folder contains the data models that define the structure of the data that is used by the application. The data models are typically used by the service classes to perform operations such as data access and validation.
- Data: This folder contains the data access layer of the application, which is responsible for interacting with the database or other data sources. The data access layer is typically used by the service classes to perform operations such as data access and validation.
- Auth: This folder contains the authentication and authorization logic of the application. The authentication and authorization logic is typically used by the controller classes to ensure that only authorized users can access the API.