Small Backend is a high-performance RESTful API built with ASP.NET Core, serving as the core engine for the Small blogging platform. It handles secure user authentication, article management, and data persistence using modern .NET technologies.
The API is deployed and live. You can access the Base URL and explore the endpoints via Swagger UI:
- Base URL: https://small.onurkarabeyoglu.online
- Swagger / OpenAPI: https://small.onurkarabeyoglu.online/swagger
This backend API is designed to power the Small Frontend application. You can view the source code or visit the live application below:
- Live Frontend Application: https://sm.mmdjamali.ir
- Frontend Repository: https://github.com/mmdjamali/small-frontend
- Framework: ASP.NET Core Web API (.NET 10.0)
- Language: C# 12
- Database: PostgreSQL / MSSQL (via Entity Framework Core)
- Authentication: JWT (JSON Web Tokens)
- Documentation: Swagger / OpenAPI
- Validation: FluentValidation
- .NET 10.0 SDK
- PostgreSQL or SQL Server instance
git clone [https://github.com/karabeyogluonur/small-backend.git](https://github.com/karabeyogluonur/small-backend.git)
cd small-backendUpdate appsettings.json with your database connection string:
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Database=SmallDb;User Id=postgres;Password=yourpassword;"
}Restore packages and start the server:
dotnet restore
dotnet runThe API will run on https://localhost:5001 (or http://localhost:5000) locally.
Auth
POST /api/auth/login- User loginPOST /api/auth/register- User registration
Articles
GET /api/articles- Get all articlesGET /api/articles/{slug}- Get article by slugPOST /api/articles- Create article (Authorized)
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/NewFeature) - Commit your Changes (
git commit -m 'Add NewFeature') - Push to the Branch (
git push origin feature/NewFeature) - Open a Pull Request
- Onur Karabeyoğlu - GitHub Profile
- Mohammad Jamali - GitHub Profile
Distributed under the MIT License.