---
title: "Deploy .NET6 API"
description: "Starter ASP.NET Core API baked with env variables."
category: "Starters"
url: https://railway.com/deploy/fKgMtM
---

# Deploy .NET6 API

Starter ASP.NET Core API baked with env variables.

**[Deploy .NET6 API on Railway](https://railway.com/template/fKgMtM)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/fKgMtM/manifest.json

- **Creator:** Ayush Lal's Projects
- **Category:** Starters
- **Total deploys:** 120

## Template content

### dotnet6-api

- **Source:** ayush-lal/dotnet6-api

## Documentation

<div align="center">
  <h3 align="center">ASP.NET Core API (.NET6)</h3>
</div>

<hr>

## Description

Starter ASP.NET Core API baked with env variables.

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/fKgMtM?referralCode=8JDnNA)

### Tech Stack

- ASP.NET Core Web API
- .NET 6

## Getting Started

### Installation

1. Clone the repo
   ```
   git clone https://github.com/ayush-lal/dotnet6-api
   ```
2. Navigate to project directory and clone .env.example
   ```
   cd src/ExampleAPI
   ```
   - Windows:
     ```
     copy .env.example .env
     ```
   - Linux/MacOS:
     ```
     cp .env.example .env
     ```
3. Run the API
   ```
   dotnet run
   ```

## Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated!**

If you have a suggestion that would make this project better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star!

1. Clone the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request


## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [WireMock Private API Stubs](https://railway.com/deploy/wiremock-private-api-stubs) — Persistent HTTP API stubs behind generated owner access.

Open this page in a browser: https://railway.com/deploy/fKgMtM
