Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Aman Kubanychbek
@code4aman
VS SE is a pain, tbh)
zeLaur
@zelaur__twitter
Hi guys, just discovered and installed this awesome starter kit, and everything seems to run nice, I have 2 questions, 1st, I`m now on a win10 64bit machine, does this kit work on ubuntu based machines for development ? And also, I haven't use asp net core yet, and if posible can someone point me to a identity core example with react ?
Aman Kubanychbek
@code4aman
Identity stuff is unrelated to React. However you have to choose between cookie and token based auth, with second one you have to take a care about JWT or something similar on client side (say in Redux, since React is just a 'view').
zeLaur
@zelaur__twitter
Thx for the quick reply, I have build a react redux token based app, but backed by express and passport, I was courious on how this template is set-up to use identity core, if it wrapps the index.html in a cookie like solution ( think old school ) with a form based auth in a different page or it better to go the token way ( auth bearer etc ... ) and if there is any github project where I can take a look.
Aman Kubanychbek
@code4aman
I believe this starter kit was builded with Unix-first in mind (both dev and prod stage) or even for docker, but I'm on win10 x64 too 😃
zeLaur
@zelaur__twitter
:)
so, in your case, what approach did you have on the auth problem, cookie or tokens ?
Aman Kubanychbek
@code4aman
Unfortunately, I have no real experience with tokens based auth on asp.net
zeLaur
@zelaur__twitter
so cookies it is :)
Aman Kubanychbek
@code4aman
In my case - it is OK, in-house project. No public access
Konstantin Tarkus
@koistya
With a token-based authentication, I think you would still need to send it as a cookie, e.g. user enters username/password, clicks Login, that infor is sent to /token endpiont via Ajax, that endpoint generates a new token and sends it to the client in an HTTPOnly cookie (id_token), all subsequent requests to the server will send that token automatically. Then on the server, there should be a middleware that reads cookies.id_token value if it exists, decods it into a User object and puts it into request context so that all the remaining middlewares down the pipeline for that particular request have access to a decoded User object. On the client, if /token endpoint returned "true" or something like that, you can just redirect a user from the /login page to /dashboard etc. window.location.href = '/dashboard',
Master Kwoth
@Kwoth
I guess I am in a wrong place to as a quesiton about aspnetcore-spa yo generator?
Konstantin Tarkus
@koistya
@Kwoth yeah, that's another one, this project includes generator-aspnetcore
geminiyellow
@geminiyellow
hiha~~~ good morning everybody
geminiyellow
@geminiyellow
can i use vs for mac open this project ?
Konstantin Tarkus
@koistya
@geminiyellow hey! Didn't test it with VS for Mac yet..
geminiyellow
@geminiyellow
@koistya yes, not working, and the vs for Mac have some error on the .csproj
Aman Kubanychbek
@code4aman
Anyone else
Mike
@marque0ne_twitter
I'm curious, is there a reason running node run doesn't build the main.js and move it to the distilled folder?
Aman Kubanychbek
@code4aman
Anyone
Aman Kubanychbek
@code4aman
Damn this gitter android client is unusable 😠. Hi, did anybody migrated to webpack v2? I'm experiencing issues with npm run build, however it's absolutely OK if executed with debug flag. The error is in promise inside of bundle command.
Aman Kubanychbek
@code4aman
^ it was a webpack config issue.
Jeppe Terndrup
@terndrup
Hey guys, have any of you had issues with the starter kit in IE / Edge? When I try to run my application it just says '$ is not defined' - as if some of the webpack dependency loading fails
A Test
@atwitest_twitter
Hi! How does it compare to https://reactjs.net ?
omarsiddiqi
@omarsiddiqi
hey fellas wondering if anyone can help me understand my issue.
deployed the app to azure
using local git

but it gives me a HTTP Error 502.5 - Process Failure

Common causes of this issue:

The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port

what am i doing wrong?
any hellp will be appreciated. '
A Test
@atwitest_twitter
Hi @omarsiddiqi this might help aspnet/IISIntegration#252
Jeppe Terndrup
@terndrup
have any of you tested it on .NET Core 1.1.1? It seems to fail to load the .net core project properly and returns an Specify a project or solution file
1.0.1* sorry
Jeppe Terndrup
@terndrup
@koistya
Konstantin Tarkus
@koistya
@terndrup not yet, will try to update to the latest .NET Core version soon, or you can help and send a PR
TanerYavuzCybercom
@TanerYavuzCybercom
In case you run into issues with building with latest commit, add <RuntimeIdentifier>coreclr<RuntimeIdentifier> to PropertyGroup of server.csproj
TanerYavuzCybercom
@TanerYavuzCybercom
Running node run publish deploys successfully, but doesnt include .NET files, only the default files when downloading the repo
TanerYavuzCybercom
@TanerYavuzCybercom
Has anybody tried "node run publish" since last commit?
Alexey
@flcl42
Guys, hello! Sorry for my question, he may look pretty stupid, but I need to understand. Does aspnet-starter-kit became obsolete against react-create-app stack?
Or it uses same webpack/hot reload/etc things as fb boilerplate?
Konstantin Tarkus
@koistya
@flcl42 aspnet-starter-kit is more about back-end part, you can combine that back-end approach with create-react-app on the front-end (though, create-react-app doesn't support server-side rendering, it will be purely a single-page app (SPA)
Alexey
@flcl42
OK, got it, ty
Edson Alcalá
@EdsonAlcala
hey !
Georgios Diamantopoulos
@georgiosd
morning folks
reactjs newbie here - just downloaded the aspnet startet kit (fantastic work!) - what's the preferred way to scaffold components?
Konstantin Tarkus
@koistya
@georgiosd I personally like to use VS Code templates for scaffolding
Andreas Savva
@andreassavva
Hey, really cool project, thanks for that! How do I load a "loading" page while the client is working on fetching data from server?
Konstantin Tarkus
@koistya
@andreassavva for that you may want to fetch data inside "componentDidMount()"
Andreas Savva
@andreassavva
yes, so the routes in router.json are to be used to fetch data that is needed before loading the page?
Andreas Savva
@andreassavva
I meant, the data in the routes, not the routes themselves