Bored Student
Bored Student
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Bored Student on 11/19/2024 in #questions
How to type react element arguments
thats as annoying as the absence of named arguemnts
6 replies
TTCTheo's Typesafe Cult
Created by Bored Student on 11/19/2024 in #questions
How to type react element arguments
so
const Example = ({guid} : {string}) => { ... }
const Example = ({guid} : {string}) => { ... }
?
6 replies
TTCTheo's Typesafe Cult
Created by Bored Student on 11/16/2024 in #questions
Add React to .NET Api
No description
7 replies
TTCTheo's Typesafe Cult
Created by Bored Student on 11/16/2024 in #questions
Add React to .NET Api
No description
7 replies
TTCTheo's Typesafe Cult
Created by Bored Student on 11/16/2024 in #questions
Add React to .NET Api
Serve Files from wwwroot folder
C#
var builder = WebApplication.CreateBuilder(args);
...
var app = builder.Build();
...
app.UseStaticFiles();
app.UseDefaultFiles();
app.MapFallbackToFile("index.html");
C#
var builder = WebApplication.CreateBuilder(args);
...
var app = builder.Build();
...
app.UseStaticFiles();
app.UseDefaultFiles();
app.MapFallbackToFile("index.html");
Tell Vite to build to wwwroot folder:
export default defineConfig({
plugins: [react()],
build: {
outDir: '../API/wwwroot',
emptyOutDir: true,
},
});
export default defineConfig({
plugins: [react()],
build: {
outDir: '../API/wwwroot',
emptyOutDir: true,
},
});
Add Vite Build to Project Build & Lauch Settings
7 replies
TTCTheo's Typesafe Cult
Created by Bored Student on 11/16/2024 in #questions
Add React to .NET Api
I've done something similar in the past using nginx but i want to have it more contained this time.
7 replies
TTCTheo's Typesafe Cult
Created by om3r on 11/1/2024 in #questions
can T3 stack build big apps like erp system ?
to do something like SAP you shouldn't use JS/TS you need at least .NET or Java if not C/Zig/Rust SAP is kinda trash but actually incredibly mighty by itself it's a whole contained ecosystem.
5 replies
TTCTheo's Typesafe Cult
Created by om3r on 11/1/2024 in #questions
can T3 stack build big apps like erp system ?
Depends on the exact scope and your infra. It's definitely Possible but I'd hardly advise against it. It's well suited to make an web front-end/dashboard thing for an ERP with a bit of extra spice.
5 replies
TTCTheo's Typesafe Cult
Created by Bored Student on 10/7/2024 in #questions
From Post to API
looks like i can sneak that in
6 replies
TTCTheo's Typesafe Cult
Created by Bored Student on 10/7/2024 in #questions
From Post to API
thx
6 replies
TTCTheo's Typesafe Cult
Created by danyella on 6/21/2024 in #questions
What NoSQL databases are actually good?
131 replies
TTCTheo's Typesafe Cult
Created by danyella on 6/21/2024 in #questions
What NoSQL databases are actually good?
Filesystems
131 replies
CC#
Created by Bored Student on 5/22/2024 in #help
How to Dockerize
3 replies
CC#
Created by Bored Student on 5/8/2024 in #help
API Endpoint is Invoked with `null` Argument
However I'm not to inclined to debug the middleware and possible configuration issues, as long as typed JSON just works
13 replies
CC#
Created by Bored Student on 5/8/2024 in #help
API Endpoint is Invoked with `null` Argument
And I'm on .NET 8 so it most definitely should work, yet it doesn't 🤔
13 replies
CC#
Created by Bored Student on 5/8/2024 in #help
API Endpoint is Invoked with `null` Argument
Very much so 😮‍💨 , altough i'm a little disapointed .NET doesn't parse the strings
13 replies
CC#
Created by Bored Student on 5/8/2024 in #help
API Endpoint is Invoked with `null` Argument
The solution was types btw.
body: JSON.stringify({
"lable" : nameInput.value,
"poBox" : (typeDropdown.value === "true"),
"poNumber" : parseInt(packstationVal),
"town": cityInput.value,
"zipCode": parseInt(zipInput.value),
"road": streetNameInput.value,
"houseNumber" : streetNumberInput.value,
"country": countryInput.value,
})
body: JSON.stringify({
"lable" : nameInput.value,
"poBox" : (typeDropdown.value === "true"),
"poNumber" : parseInt(packstationVal),
"town": cityInput.value,
"zipCode": parseInt(zipInput.value),
"road": streetNameInput.value,
"houseNumber" : streetNumberInput.value,
"country": countryInput.value,
})
13 replies
CC#
Created by Bored Student on 5/8/2024 in #help
API Endpoint is Invoked with `null` Argument
Not Successfull (and all other endpoints work case-insensitive)
13 replies
CC#
Created by Bored Student on 5/8/2024 in #help
API Endpoint is Invoked with `null` Argument
I know, i hate cors i just threw everythin at it and haven cleaned properly, unrelated though
13 replies