https://github.com/mikhaylov1gor/api-todo-list
.Net application on efcore
https://github.com/mikhaylov1gor/api-todo-list
asp-net-core efcore sql
Last synced: over 1 year ago
JSON representation
.Net application on efcore
- Host: GitHub
- URL: https://github.com/mikhaylov1gor/api-todo-list
- Owner: mikhaylov1gor
- Created: 2025-02-23T19:46:43.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-23T20:09:25.000Z (over 1 year ago)
- Last Synced: 2025-02-23T20:32:16.247Z (over 1 year ago)
- Topics: asp-net-core, efcore, sql
- Language: C#
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
WEB repository: https://github.com/mikhaylov1gor/React-Todo-List
!!! Before running the project, make sure the API is running on the correct port. To change the port for WEB interaction: !!!
1. Open the file `Program.cs`.
2. Find the following code snippet that configures CORS:
```csharp
builder.Services.AddCors(options =>
{
options.AddPolicy(name: MyAllowSpecificOrigins,
policy =>
{
policy.WithOrigins("http://localhost:5174") // Change this URL to match the port of your web app
.AllowAnyMethod()
.AllowAnyHeader();
});
});
Running Locally
1. Clone the repository:
git clone https://github.com/mikhaylov1gor/Api-Todo-List
2. Restore project dependencies:
dotnet restore
3. Build the project:
dotnet build
4. Apply db migrations:
dotnet ef database update
or (visual studio)
Update-Database
5. Run the project:
dotnet run