Skip to content

AKhalil22/ETIC-Database-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ETIC-Database-Project

ASP.NET REST API with MSSQL and Python integration for ETIC project

Overview of the project

  • ASP.NET RESTful API with MSSQL database
  • Python Client that interacts with the API via CRUD operations

Lucidspark Chart

Requirements

Installation

1. Clone the repository

git clone https://github.com/AKhalil22/ETIC-Database-Project.git

2. Install the required packages

cd ETIC-Database-Project
dotnet restore

3. Connect the MSSQL database

Update 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 init

Should look like this: Success Message

Then run:

dotnet ef database update

Refresh your database & dbo.Expenses should be created within your database!

Run API:

dotnet run

4. Install Python Client Requirements & Run

In a new terminal:

cd Client
pip install -r requirements.txt
python main.py

About

ASP.NET REST API with MSSQL and Python integration for ETIC project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors