https://github.com/karolchoron/findflightsapiserver
FindFligts - backend server app - C# .NET Blazor RESTfull API
https://github.com/karolchoron/findflightsapiserver
api backend csharp dotnet dotnet-core restfull-api server
Last synced: about 2 months ago
JSON representation
FindFligts - backend server app - C# .NET Blazor RESTfull API
- Host: GitHub
- URL: https://github.com/karolchoron/findflightsapiserver
- Owner: karolchoron
- Created: 2025-02-19T13:14:50.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-19T13:49:23.000Z (over 1 year ago)
- Last Synced: 2025-02-19T14:28:07.704Z (over 1 year ago)
- Topics: api, backend, csharp, dotnet, dotnet-core, restfull-api, server
- Language: C#
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ✈️ FindFlights API Server - Backend
[](https://findflights.onrender.com)
## EN (PL version bellow)
### FlightTrack is a real-time flight status tracking application. 🛫
🔗 **Start the application:**
➡ [https://findflights.onrender.com](https://findflights.onrender.com)
---
## 🚀 **Technologies**
- ✅ ASP.NET Core
- ✅ C#
- ✅ RESTfull API (aviationstack API)
- ✅ Docker - deploy & DevOps na render.com
---
## 📥 **Installation (Local)**
0. **Remember to prepare the frontend application as well!**
➡ [https://github.com/karolchoron/FindFlightsAPIServer](https://github.com/karolchoron/FindFlights)
1. **Clone the repository**
2. **Add aviationstack API keys to the secrets.json**
Settings to allow frontend connection:
```
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5240/") });
Port for:
HTTP: 5240
HTTPS: 7220
```
3. **CORS Settings (Cross-Origin Resource Sharing)**
```
builder.Services.AddCors(options =>
{
options.AddDefaultPolicy(policy =>
{
policy.WithOrigins("https://findflights.onrender.com") // Edytuj domenę - lokalny adres frontendu z portem : http://localhost: 7050 lub 5228
.AllowAnyMethod()
.AllowAnyHeader();
});
});
```
4. **Launch the application**
### 📌 Examples of real flight numbers:
- LO267
- MM68
- 7C2108
- CX524
- QR5844
---
🤝 **Contact**
Do you have questions?
Contact via
[](https://www.linkedin.com/in/karol-choron/)
---
## PL
### FlightTrack to aplikacja do śledzenia statusów lotów w czasie rzeczywistym. 🛫
🔗 **Uruchom aplikację:**
➡ [https://findflights.onrender.com](https://findflights.onrender.com)
---
## 🚀 **Technologie**
- ✅ ASP.NET Core
- ✅ C#
- ✅ RESTfull API (aviationstack API)
- ✅ Docker - deploy & DevOps na render.com
---
## 📥 **Instalacja (Lokalnie)**
0. **Pamiętaj aby przygotować również aplikację frontendową!**
➡ [https://github.com/karolchoron/FindFlightsAPIServer](https://github.com/karolchoron/FindFlights)
1. **Klonuj repozytorium**
2. **Dodaj klucze aviationstack API do secrets.json**
Ustawienia do zezwolenia połączenia frontendu:
```
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5240/") });
Port dla:
HTTP: 5240
HTTPS: 7220
```
3. **Ustawienia CORS (Cross-Origin Resource Sharing)**
```
builder.Services.AddCors(options =>
{
options.AddDefaultPolicy(policy =>
{
policy.WithOrigins("https://findflights.onrender.com") // Edytuj domenę - lokalny adres frontendu z portem : http://localhost: 7050 lub 5228
.AllowAnyMethod()
.AllowAnyHeader();
});
});
```
4. **Uruchom aplikację**
### 📌 Przykładowe numery prawdziwych lotów:
- LO267
- MM68
- 7C2108
- CX524
- QR5844
---
🤝 **Kontakt**
Masz pytania?
Skontaktuj się przez
[](https://www.linkedin.com/in/karol-choron/)
---