https://github.com/chizer1/dblocatorexample
Example repository for showing DbLocator features
https://github.com/chizer1/dblocatorexample
Last synced: 5 months ago
JSON representation
Example repository for showing DbLocator features
- Host: GitHub
- URL: https://github.com/chizer1/dblocatorexample
- Owner: chizer1
- Created: 2025-01-26T02:07:17.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-16T19:30:14.000Z (over 1 year ago)
- Last Synced: 2025-02-16T20:27:21.944Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DbLocatorExample
This repository shows the features of the DbLocator .NET library using a minimal API and small React app.
[https://github.com/chizer1/DbLocator](https://github.com/chizer1/DbLocator)
## How to Run
### 1. Download Node and NPM
https://nodejs.org/en
https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
### 2. Download .NET 9
https://dotnet.microsoft.com/en-us/download/dotnet/9.0
### 3. Add GitHub package source
`dotnet nuget add source https://nuget.pkg.github.com/chizer1/index.json --name DbLocator --username --password `
### 4. SQL Server Setup
You will need an instance of SQL Server running. For local development, you can either:
- Use the SQL Server image in this repository by running docker compose up from the root. This requires Docker Desktop to be installed (https://docs.docker.com/get-started/get-docker/)
- Install SQL Server directly on your machine (https://www.microsoft.com/en-us/sql-server/sql-server-downloads
Once you have a server running, then in two different terminals:
### 5. Run the dotnet API
```sh
## Update appsettings.json with your SQL connection string first
cd API
dotnet run
```
### 6. Run react app
```sh
cd Client
npm i
npm run dev
```