File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,15 @@ Admin Hub API serves as the core backend infrastructure for managing multiple ad
34
34
35
35
1 . Clone the repository
36
36
``` bash
37
- git clone https://github.com/your-username /admin-hub-api.git
37
+ git clone https://github.com/design-sparx /admin-hub-api.git
38
38
cd admin-hub-api
39
39
```
40
40
41
41
2 . Update the connection string in ` appsettings.json `
42
42
``` json
43
43
{
44
44
"ConnectionStrings" : {
45
- "DefaultConnection" : " Server=your-server;Database=AdminHubDB;Trusted_Connection =True;"
45
+ "DefaultConnection" : " Data Source={{PC-NAME}} \\ SQLEXPRESS;Initial Catalog={{DB-NAME}};Integrated Security =True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False "
46
46
}
47
47
}
48
48
```
@@ -54,22 +54,26 @@ dotnet ef database update
54
54
55
55
4 . Start the application
56
56
``` bash
57
- dotnet run
57
+ dotnet watch run
58
58
```
59
59
60
60
## Project Structure
61
61
62
62
```
63
63
admin-hub-api/
64
- ├── src/
65
- │ ├── AdminHub.API/ # API project
66
- │ ├── AdminHub.Core/ # Business logic and domain models
67
- │ ├── AdminHub.Data/ # Data access layer
68
- │ └── AdminHub.Common/ # Shared utilities and helpers
64
+ ├── AdminHubApi/
65
+ │ ├── Controllers/
66
+ │ ├── Data/
67
+ │ ├── Dtos/
68
+ │ └── Extensions/
69
+ │ └── Helpers/
70
+ │ └── Interfaces/
71
+ │ └── Mappers/
72
+ │ └── Migrations/
73
+ │ └── Models/
74
+ │ └── Repository/
75
+ │ └── Service/
69
76
├── tests/
70
- │ ├── AdminHub.API.Tests/
71
- │ ├── AdminHub.Core.Tests/
72
- │ └── AdminHub.Data.Tests/
73
77
└── docs/ # Additional documentation
74
78
```
75
79
@@ -81,7 +85,7 @@ API documentation is available via Swagger UI at `/swagger` when running the app
81
85
82
86
1 . Fork the repository
83
87
2 . Create your feature branch (` git checkout -b feature/AmazingFeature ` )
84
- 3 . Commit your changes (` git commit -m 'Add some AmazingFeature' ` )
88
+ 3 . Commit your changes (` git commit -m 'feat: Add some AmazingFeature' ` )
85
89
4 . Push to the branch (` git push origin feature/AmazingFeature ` )
86
90
5 . Open a Pull Request
87
91
You can’t perform that action at this time.
0 commit comments