jenmcquade / aspnetcore-react-redux Goto Github PK
View Code? Open in Web Editor NEWBoilerplate for C# ASP .NET Core MVC SPA with TypeScript, React and Redux
Boilerplate for C# ASP .NET Core MVC SPA with TypeScript, React and Redux
File sizes can be minimized further by gzipping the files and correctly setting their cache times.
Hi Jon,
Firstly,this looks a really good project, big thank you (I am using it as a boilerplate to learn from)
However, I am struggling to get it to build either in VS Community 2017 Preview (V15.7.0 Preview 2.0)
on Windows 10 (latest build) with .Net Core 2.1, NPM 5.60, Node v8.11.1, Webpack 4.5.0, TypeScript 2.8 or via docker (Prod or Dev)
I appreciate that you have posted this up on GitHub and I feel like I should be able to work it out but I am struggling a bit.
NPM errors via Windows Powershell
PS C:\Users\James\Documents\Visual Studio 2017\Projects\Preview\aspnetcore-react-redux-master\src> npm install
npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies your
self.
npm WARN [email protected] requires a peer of webpack@^1.13.2 || ^2.1.0-beta || ^3.0.0 but none is installed. You mus
t install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^2.2.0 but none is installed. You must install peer depen
dencies yourself.
npm WARN [email protected] requires a peer of babel-eslint@^7.2.3 but none is installed. You must install pe
er dependencies yourself.
npm WARN [email protected] requires a peer of eslint-plugin-jsx-a11y@^5.1.1 but none is installed. You must
install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@>=0.13.0 <16.0.0 but none is installed. You must install peer depende
ncies yourself.
npm WARN [email protected] requires a peer of moment@^2.8.3 but none is installed. You must install peer dependencies you
rself.
npm WARN [email protected] requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed. You
must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})
up to date in 12.053s
Not sure if these are just warnings but the npm folder does not load in VS 2017 Preview (yellow triangle) and I get the following build errors.
VS 2017 Preview build errors
Severity Code Description Project File Line Suppression State
Error CS7064 Error opening icon file C:\Users\James\Documents\Visual Studio 2017\Projects\Preview\aspnetcore-react-redux-master\src\wwwroot\favicon.ico -- Could not find file 'C:\Users\James\Documents\Visual Studio 2017\Projects\Preview\aspnetcore-react-redux-master\src\wwwroot\favicon.ico'. flightsearch C:\Users\James\Documents\Visual Studio 2017\Projects\Preview\aspnetcore-react-redux-master\src\CSC 1 Active
Severity Code Description Project File Line Suppression State
Error TS5055 Cannot write file 'C:/Users/James/Documents/Visual Studio 2017/Projects/Preview/aspnetcore-react-redux-master/src/ClientApp/registerServiceWorker.js' because it would overwrite input file. C:\Users\James\Documents\Visual Studio 2017\Projects\Preview\aspnetcore-react-redux-master\src (tsconfig or jsconfig project) 1 Active
Severity Code Description Project File Line Suppression State
Error TS5055 Cannot write file 'C:/Users/James/Documents/Visual Studio 2017/Projects/Preview/aspnetcore-react-redux-master/src/webpack.config.js' because it would overwrite input file. C:\Users\James\Documents\Visual Studio 2017\Projects\Preview\aspnetcore-react-redux-master\src (tsconfig or jsconfig project) 1 Active
Severity Code Description Project File Line Suppression State
Error TS5055 Cannot write file 'C:/Users/James/Documents/Visual Studio 2017/Projects/Preview/aspnetcore-react-redux-master/src/webpack.config.vendor.js' because it would overwrite input file. C:\Users\James\Documents\Visual Studio 2017\Projects\Preview\aspnetcore-react-redux-master\src (tsconfig or jsconfig project) 1 Active
btw Tacoma (and the whole pacfic nw) looks a great place - on my list of places to visit!
Cheers and Thanks again for a great project
James
Lighthouse says this is a fail in Progressive Web App category.
Some complaints from cohorts that their .NET environment is conflicting with this .NET Core App's installation, so Dockerize the solution and installation inside of a .NET Core container, and add binding to local host.
Older package has vulnerabilities.
Modify any instructions for Webpack builds so they point to the local node_modules folder
Vendor manifest appears to be there, but not the main app manifest. This might be resolved when serviceWorker is registered.
Currently, HTTPS is available through Heroku. However, either the app or a reverse proxy needs to implement HTTP detection and redirect as a 301 to HTTPS.
hapijs / hoek
in src/package-lock.json : Known security vulnerability in 2.16.3
Menu column should reduce to a horizontal row when targeting styles through media queries of 767px or smaller.
"HMR Connected" is displayed in Developer Tools, but when a file change is saved, it doesn't trigger a rebuild and injection from WebPack.
This behavior is only present when using Docker containers for development. HMR works when developing locally.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.