{"id":25915782,"url":"https://github.com/techwatching/aspnetwithnuxt","last_synced_at":"2025-07-19T17:14:47.873Z","repository":{"id":280355138,"uuid":"938898931","full_name":"TechWatching/AspnetWithNuxt","owner":"TechWatching","description":"Integrating an ASP.NET Core API with a Nuxt Front End","archived":false,"fork":false,"pushed_at":"2025-03-02T23:02:30.000Z","size":82,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T00:48:02.652Z","etag":null,"topics":["aspnetcore","dotnet","full-stack","nuxt","vuejs"],"latest_commit_sha":null,"homepage":"https://techwatching.dev/posts/aspnetcore-with-nuxt","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TechWatching.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-25T17:13:23.000Z","updated_at":"2025-03-02T23:02:33.000Z","dependencies_parsed_at":"2025-03-03T00:48:06.729Z","dependency_job_id":"9f31bb64-3aaa-4f94-89cc-2ec0699ffd92","html_url":"https://github.com/TechWatching/AspnetWithNuxt","commit_stats":null,"previous_names":["techwatching/aspnetwithnuxt"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWatching%2FAspnetWithNuxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWatching%2FAspnetWithNuxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWatching%2FAspnetWithNuxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWatching%2FAspnetWithNuxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechWatching","download_url":"https://codeload.github.com/TechWatching/AspnetWithNuxt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241661443,"owners_count":19998951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnetcore","dotnet","full-stack","nuxt","vuejs"],"created_at":"2025-03-03T12:17:33.308Z","updated_at":"2025-03-03T12:17:33.955Z","avatar_url":"https://github.com/TechWatching.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Integrating an ASP.NET Core API with a Nuxt Front End\n\nThis samples demonstrates how to integrate an ASP.NET Core API with a Nuxt front end.\n\n## What is it?\n\nThis repository is composed of 3 parts:\n- a basic ASP.NET Core API  (in the `WebApi` folder) created from the .NET 9 `webapi` template\n- a simple Nuxt front end (in the `WebApp` folder) created from the `v4-compat` template\n- a .NET Aspire project (in the `AppHost` folder) to orchestrate the `WebApp` and `WebApi` projects\n\nThis [blog article](https://techwatching.dev/posts/aspnetcore-with-nuxt) explains how this repository was created.\n\n## Pre-requisites\n\nBefore running the application, make sure to have configured `HTTPS` as explained [in this article](https://techwatching.dev/posts/aspnetcore-with-nuxt-https):\n1. Create an `.env` file with the following content:\n```text\nNODE_TLS_REJECT_UNAUTHORIZED=0\n```\n2. Generate and trust the ASP.NET Core HTTPS Development certificate if you haven't already:\n```bash\ndotnet dev-certs https --trust\n```\n3. Create the certificate and private key files for the Nuxt front end:\n```bash\ndotnet dev-certs https --export-path ./WebApp/dev-cert.pem --format PEM -np\n```\n\n## Run the application without .NET Aspire\n\nAdd the URL of the API in your `.env` file:\n```text\nApiUrl=https://localhost:7238\n```\n\nTo run the application, you need to start both the API and the front\n\n```bash\n// Launch the ASP.NET Core API\ndotnet run --project WebApi\\WebApi.csproj\n```\n```bash\n// Launch the Nuxt application front end\npnpm --dir WebApp dev\n```\n\n## Run the application with .NET Aspire\n\nTo run the application with .NET Aspire, you need to start the `AppHost` project:\n\n```bash\ndotnet run --project AppHost/AppHost.csproj\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwatching%2Faspnetwithnuxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechwatching%2Faspnetwithnuxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwatching%2Faspnetwithnuxt/lists"}