I'm new to the ASP.NET Boilerplate framework. I just downloaded the template, which builds with .NET Core and React.js, from ABP website "Get started" page. I created the database and updated the database. The database seems correct, now I don't know how to run it.
I set the Workflow.Web.Host.csproj as the startup project and ran it. I just got a page with a list of APIs.
My question is how can I login to the system by React.js?
From reactjs/README.md in the downloaded template:
After cloning repository, first install npm packages:
cd reactjs
npm install
And then start:
npm start
Related
I am attempting to setup CI/CD for a frontend project using Docker, ExtJS and open tooling. Because of the odd authentication process, I am unable to use npm to build a production version of the app. It appears that the build process keeps checking in with the sencha repo. You can overcome this with most git repos by generating a token and including that in the docker file. Question is: is it possible to do the same with the sencha npm repo?
I want to create project in asp.net core 2.0 with react.js.
I have Visual Studio Community 2017 (2) version 15.9.17 with Microsoft .net framework v4.8.03761.
When I create project, using .Net Core > Asp.NET Core Web Application & select Asp.Net Core 2.0 as targeted version with React.js as showing in link https://www.screencast.com/t/SRVV7vOmkz
when I build project this error is showing
Error MSB3073 The command "node node_modules/webpack/bin/webpack.js
--config webpack.config.vendor.js" exited with code 1.
I could get a similar error info if I build a new project without running npm i when using React +ASP.NET Core 2.0.
If that's the case, please make sure
you have installed the node.js
run cmd/powershell (might require RunAs Administrator )
and cd into the project folder (the folder that contains the *.csproj)
run npm i to install the dependencies (make sure there's no error info when you run npm i. If you cannot make it, try npm i --force):
> cd /path/to/the/folder/that/contains/the/*.proj/file
> npm i
Finally, it should work fine now.
As a side note, ASP.NET Core 2.0 has reached its EOL. Please consider updating it to 2.1 (LTS).
I would like to deploy my react app to IIS and I tried a step by step guide.
I already tried a create-react-app and I already added a new website but when I run It says:
this site can't reach
.
I tried that way but some steps are not understood.=>create-react-app on IIS 10
I am newbie and May I know step by step if possible.
Thanks.
I suggest you could try belwo steps to host a reasct app on the IIS.
If you don't have the react app, I suggest you could install the npm and generate a react app for testing.
1.Open cmd and locate a folder by using cd yourfoldername
2.Run below command to add the package
npm i -g create-react-app
3.Run below command to create the react app in the folder, wait for creating the application
create-react-app my-app
Build the project to production folder.
npm run build
5.Open IIS management console and create a new web sites and use the build path as the physical path. for example: D:\ReactAppTest\my-app\build
Notice: You should pay attention to your port number.
Then you could use that port number to access your react application. For example:
http://localhost:9965/
Today I downloaded the ABP Asp.Net Core REACT SPA template. After downloading, I ran npm install and then npm start. These two steps worked, no issues.
Once the REACT app has started, the browser opens up and all I get is a blank page. Then after a few seconds the below error dialog box comes up.
When I look at the chrome console, I find the errors shown below.
I'm new to REACT and very much still learning it. So I could use some help in tracking this error down.
Please note I did run the migrator project and got the DB setup on my PC and updated the connection strings to ensure connectivity for the .NET code.
Follow steps below to check whether you miss any step:
VS 2019 Open abp project
Change YourProjectName.Web.Host -> appsettings.json -> ConnectionStrings.Default
From VS 2019 PMC, set YourProjectName.EntityFrameworkCore as Default Project
Run update-database which will create the database
Set YourProjectName.Web.Host as Start Project, and run YourProjectName.Web.Host
For expected result, you will get http://localhost:21021/swagger/index.html
CD reactjs folder and run npm install and npm start
http://localhost:3000/user/login will show up.
I am attempting to use the latest angular2 quickstart files with a new empty ASP.NET Core 1.0 Web Application.
VS2015 Update 2 - w/ Core 1.0 RC2 installed
Steps to reproduce:
Create a new project using ASP.NET Core Web Application (.NET Core) - Empty Template
Add the 4 angular quick-start files to your root directory, NOT Hitting save on package.json until the other 3 are added and saved.
Finally, hit save on package.json and npm will start installing all of the packages. However, at the end I see Dependencies - not installed, npm - not installed. I can't figure out what could be causing this. It has to be a VS2015 / npm bug because if I use VSCode and npm from command line everything installs perfectly with this package.json file.
This is a bug in the Web Tools for ASP.NET Core RC2, which was discovered after RC2 was shipped. It's only that the "- not installed" UI is showing up incorrectly. The packages are successfully installed.
I'm not sure what is causing it yet, but we are aware of the issue and will try to fix this in a future release of the Web Tools.