C
C#2y ago
neSHa

✅ ASP.NET CORE with React.js or ASP.NET CORE WEB APP

So im creating web app for local caffe(some menu items like food, drinks, etc... and their prices). And i come up with idea and arhitecture for this project to be one api witch get id and based on that id it will return json data. For example there is categories(Food, Pizza, and now in pizza category there is product, and under product there is topings and other stuff). Now be cause i need just one api to work just what customer will see. I wanted to create that using react, be cause it will be interactive(i dont need to refresh page when going through categories and products...). But there is problem, i also need to create admin section where ower will be adding prices other products... Now i done that part in ASP.NET CORE WEB APP, and i tought i can just create api witch i did, pull json data and boom in view just add react. Now as i can see react to add like that is not simple(or im just stupid). I searched a little bit and see i need to create ASP.NET CORE with React.js to use react. Now what to do, maybe create all over again. Im not expert so every suggestion is plus. Thanks in advance!
9 Replies
neSHa
neSHaOP2y ago
Or there is a way i can just implement react.js into this view and pull data from API? that would be perfect(minimal work :)).
Groophy
Groophy2y ago
dotnet new react -o "Project name"
neSHa
neSHaOP2y ago
so i woud need to run 2 project in same time?
Groophy
Groophy2y ago
react inside asp.net wouldn't make a problem
neSHa
neSHaOP2y ago
So the best way is to create new react project, And pull api thats on other project together with way to add categories and products?
Groophy
Groophy2y ago
yes you can get help from network you can find some tutorials
neSHa
neSHaOP2y ago
So i need to host both, actually thats perfect cause its spa, and i can get good domen and it will be pretty faster be cause of traffic. Thanks
Groophy
Groophy2y ago
Have a good coding.
neSHa
neSHaOP2y ago
Thanks
Want results from more Discord servers?
Add your server