You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-7Lines changed: 29 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,34 @@ RESTful HTTP/HTTPS server for Microsoft SQL Server, MySQL, and PostgreSQL databa
5
5
## Description
6
6
RestDb spawns a RESTful HTTP/HTTPS server that exposes a series of APIs allowing you to perform SELECT, INSERT, UPDATE, DELETE, and TRUNCATE against tables in Microsoft SQL Server, MySQL, and PostgreSQL.
7
7
8
-
## New in v1.0.2
9
-
- PostgreSQL support
8
+
## New in v1.0.3
9
+
- Retarget to .NET Core and .NET Framework
10
+
11
+
## Important Notes
12
+
- If you specify a listener other than ```localhost``` or ```127.0.0.1```, you may have to run with elevated privileges.
13
+
- The HTTP HOST header MUST match the listener hostname, otherwise you'll get ```Bad Request``` errors back.
14
+
- By default, access to RestDb is UNAUTHENTICATED. Configure ```System.json``` with API keys to enable authentication, and set the ```RequireAuthentication``` value to ```true```.
15
+
16
+
## Execution
17
+
In Windows, using .NET Framework
18
+
```
19
+
> cd RestDb\bin\debug\net462
20
+
> RestDb.exe
21
+
```
22
+
23
+
In Windows, using .NET Core
24
+
```
25
+
> cd RestDb\bin\debug\netcoreapp2.2
26
+
> dotnet RestDb.dll
27
+
```
28
+
29
+
In Linux/Mac, using .NET Core
30
+
```
31
+
$ cd RestDb/bin/debug/netcoreapp2.2
32
+
$ dotnet RestDb.dll
33
+
```
10
34
11
-
## Running in Mono
12
-
Before starting in Linux or Mac environments, you should run the Mono AOT.
35
+
In Mono with .NET Framework environments, you should run the Mono AOT.
Simply compile from source, run ```RestDb.exe```, and a system configuration file will be created for you. Setup scripts for both MSSQL and MySQL are included in the Docs directory of the project, which create the test database and person table used in the examples below.
20
43
21
-
1) Start RestDb.exe
44
+
1) Start RestDb.exe (.NET Framework) or RestDb.dll (.NET Core) as described above.
22
45
```
23
-
Windows : C:\RestDb\RestDb.exe
24
-
Linux/Mac : $ mono --server RestDb.exe
25
46
RestDb :: Starting Watson Webserver at http://localhost:8000
26
47
```
27
48
@@ -248,6 +269,7 @@ To enable authentication, set ```Server.RequireAuthentication``` to ```true``` a
248
269
Notes from previous versions (starting with v1.0.0) will be moved here.
0 commit comments