ASP.NET REST API with MSSQL and Python integration for ETIC project
- ASP.NET RESTful API with MSSQL database
- Python Client that interacts with the API via CRUD operations
git clone https://github.com/AKhalil22/ETIC-Database-Project.gitcd ETIC-Database-Project
dotnet restoreUpdate DefaultConnection String under Api > appsetting.json, replacing the Server and Database values with your own
"ConnectionStrings": {
"DefaultConnection": "Data Source={PCNAME}\\SQLEXPRESS;Initial Catalog={DATABASENAME};Trusted_Connection=True;MultipleActiveResultSets=true"
}Initialize database connection
dotnet tool install --global dotnet-ef
cd Api
dotnet ef migrations add initThen run:
dotnet ef database updateRefresh your database & dbo.Expenses should be created within your database!
Run API:
dotnet runIn a new terminal:
cd Client
pip install -r requirements.txt
python main.py
