MIT License

项目介绍

microsoft/aspire 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 MIT License 许可证,目前获得 6.4k 个 Star、1.0k 次 Fork。

仓库全名
microsoft/aspire
开源许可证
MIT License
Star 数
6.4k
Fork 数
1.0k
未关闭 Issue
2.5k

README 摘要

Aspire What is Aspire? Aspire is a multi-language, code-first toolchain for building, running, and deploying distributed applications. Describe how services, frontends, containers, databases, caches, and connections fit together in code. The Aspire CLI runs the whole app locally, exposes OpenTelemetry-based observability, and carries the same definition into deployment. A simple app definition The same application…

完整内容见 GitHub 原始 README 或本页 。

常见问题

aspire 用什么语言开发?

主要使用 C# 编写,采用 MIT License 许可证,目前有 6.4k 个 Star。

aspire 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 aspire 的源码?

可以直接克隆仓库:git clone https://github.com/microsoft/aspire.git;安装与运行步骤见仓库 README。

aspire 最近还在维护吗?

仓库最近一次更新为 12 小时前,当前有 2.5k 个未关闭 Issue;Star 数为 6.4k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Aspire is the tool for code-first, extensible, observable dev and deploy.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
8549
价值分
4035
活跃状态
活跃

语言占比

Batchfile
Bicep
C#
C++
CMake
CSS
Dockerfile
Go
Go Template
HTML
Java
JavaScript
Mermaid
Nix
PowerShell
Pug
Python
Rust
Shell
Tape
TypeScript
Vue

Release

README

Aspire

CI Tests Help Wanted Good First Issue Discord

What is Aspire?

Aspire is a multi-language, code-first toolchain for building, running, and deploying distributed applications.

Describe how services, frontends, containers, databases, caches, and connections fit together in code. The Aspire CLI runs the whole app locally, exposes OpenTelemetry-based observability, and carries the same definition into deployment.

A simple app definition

The same application definition can be written in different languages.

C# (apphost.cs)

var builder = DistributedApplication.CreateBuilder(args);

var cache = builder.AddRedis("cache");

var api = builder.AddNodeApp("api", "./api", "src/index.ts")
        .WithReference(cache)
        .WaitFor(cache)
        .WithHttpEndpoint(env: "PORT")
        .WithExternalHttpEndpoints();

builder.AddViteApp("frontend", "./frontend")
    .WithReference(api)
    .WaitFor(api);

builder.Build().Run();

TypeScript (apphost.ts)

import { createBuilder } from './.aspire/modules/aspire.js';

const builder = await createBuilder();

const cache = await builder.addRedis("cache");

const api = await builder
    .addNodeApp("api", "./api", "src/index.ts")
    .withReference(cache)
    .waitFor(cache)
    .withHttpEndpoint({ env: "PORT" })
    .withExternalHttpEndpoints();

await builder
    .addViteApp("frontend", "./frontend")
    .withReference(api)
    .waitFor(api);

await builder.build().run();

Getting started

Install the Aspire CLI

To install the latest released version of the Aspire CLI:

On Windows:

irm https://aspire.dev/install.ps1 | iex

On Linux or macOS:

curl -sSL https://aspire.dev/install.sh | bash
Note 注意

If you want to use the latest daily builds instead of the released version, follow the instructions in docs/using-latest-daily.md.

What is in this repo?

This repo contains the Aspire CLI, AppHost SDK, dashboard, service discovery infrastructure, project templates, integrations, and VS Code Extension.

Contributing

Follow docs/contributing.md for working in the repository.

Reporting security issues and security bugs

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) [email protected]. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter. You can also find these instructions in this repo’s Security doc.

Note on containers used by Aspire resource and client integrations

The Aspire team cannot evaluate the underlying third-party containers for which it provides API support for suitability for specific customer requirements.

You should evaluate whichever containers you chose to compose and automate with Aspire to ensure they meet your, your employers or your government’s requirements on security and safety as well as cryptographic regulations and any other regulatory or corporate standards that may apply to your use of the container.

License

The code in this repo is licensed under the MIT license.

评论

暂无评论