Welcome to SapiensData API! This RESTful API is designed to support the SapiensData project, providing backend services for personal accounting, receipt scanning, analysis, and management. Built with ASP.NET Core, it supports functionalities for CRUD operations, database management, and secure data processing.
- CRUD Operations for handling personal and financial data, receipts, and user management.
- Entity Framework Core for efficient data access and management.
- SQL Server integration for reliable, scalable storage.
- Swagger UI for interactive API documentation and testing.
- Clean and Modular Architecture optimized for ease of development and scalability.
Follow these steps to set up and run the project on your local machine for development and testing.
Please ensure you have the following installed:
- Visual Studio 2022 with the .NET Core cross-platform development workload.
- .NET SDK version 9.0
- SQL Server or LocalDB for local development.
- Git
- For your own .ENV:
- Sapiens API key to connect to and authorize the SapiensDataAPI subproject (identical to your
SAPIENS_API_KEY
variable fromAnalytics/.env.dev
) - A Google Drive folder path
- Sapiens API key to connect to and authorize the SapiensDataAPI subproject (identical to your
-
Open the Project in Visual Studio:
- Navigate to the
SapiensDataAPI
folder and openSapiensData.API.sln
.
- Navigate to the
-
Set Up Environment Variables:
Be ensure that you'r in the ./SapiensDataAPI/SapiensDataAPI
path.
cp .env.example .env
π οΈ Edit .env.dev
and set required values.
-
Install / Update the Database:
- Run the following commands in the NuGet Package Manager Console:
Update-Database
# Update Database Command ## If you're using Entity Framework Core: EntityFrameworkCore\Update-Database ## or dotnet ef database update dotnet ef database update --project SapiensDataAPI
-
Run the Application:
- Press
F5
or click the Run button in Visual Studio. The API will run onhttps://localhost:5001
(or a different port if configured).
- Press