Giter Site home page Giter Site logo

emonney / quickapp Goto Github PK

View Code? Open in Web Editor NEW
1.3K 116.0 582.0 32.7 MB

ASP.NET Core / Angular startup project template with complete login, user and role management. Plus other useful services for Quick Application Development

Home Page: https://www.ebenmonney.com/quickapp

License: MIT License

C# 37.08% TypeScript 37.21% JavaScript 4.42% CSS 2.43% HTML 12.63% SCSS 6.24%
template-project asp-net-core angular rapid-development rad aspnet-core aspnetcore identityserver4 template

quickapp's People

Contributors

emonney avatar marcelo-maciel avatar refactoredmarc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quickapp's Issues

Visual Studio 2017 template error. Unexpected dependency 'OpenIddict' with no version number.

Sadly this is not working with Visual Studio 2017 using the template.

Severity Code Description Project File Line Suppression State Error Unable to resolve 'OpenIddict.EntityFrameworkCore (>= 1.0.0-beta2-0560)' for '.NETStandard,Version=v1.6'. Error Unable to resolve 'OpenIddict.EntityFrameworkCore (>= 1.0.0-beta2-0560)' for '.NETCoreApp,Version=v1.1'. Error Unable to resolve 'OpenIddict (>= 1.0.0-beta2-0560)' for '.NETStandard,Version=v1.6'. Error Unable to resolve 'OpenIddict (>= 1.0.0-beta2-0560)' for '.NETCoreApp,Version=v1.1'. Error Unable to resolve 'OpenIddict.Mvc (>= 1.0.0-beta2-0560)' for '.NETCoreApp,Version=v1.1'. Error Unexpected dependency 'OpenIddict' with no version number. QuickApp (loading...) C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets 154 Error Unexpected dependency 'OpenIddict.EntityFrameworkCore' with no version number. QuickApp (loading...) C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets 154

Web Api not running

@emonney, can i change the message and behavior of the login component when backend service is not running?

Today behavior:
Show a dialog with a message:
Dear Developer! It appears your backend Web API service is not running...Would you want to temporarily switch to the online Demo API below?(Or specify another) .
And enable to change the API url

Suggested behavior:
Show an alert with a message:
"Dear user, it looks like the system is temporarily offline. Please try again later or contact your system administrator."

Seperate Angular & WebAPI

Wouldn't it be better to seperate the Angular app in a seperate project structure from the WebAPI project? That way the WebAPI project isn't as involved with the Angular specifics, because one might use the WebAPI for more than one front facing website.

It could also be a nice example on how to use JWT that way for angular or react (or vue..) clients.

webpack ./node_modules/@angular/core/esm5/core.js

Hi Dear,
I upgraded the project to version 5.0.1 with npm-upgrade. Because I want to use Angular/Material.
if I call webpack --config webpack.config.vendor.js I get follow warning:
WARNING in ./node_modules/@angular/core/esm5/core.js
6438:15-36 Critical dependency: the request of a dependency is an expression
@ ./node_modules/@angular/core/esm5/core.js
@ dll vendor

Here fullstackproltd/AspNetCoreSpa#96 I read that is a problem with the webpack.config.js.

what can I do.
Thanks for your help.
Regards Ingo

it seems the project requires node.js to compile

when building the solution i get this error.
"Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE."

Is this a requirement? Will it need to be installed on the production server as well?

Publishing to azure

Hi, thanks a lot for this template it is really cool. Do you have issues when publishing to azure from VS 2017? VS does not detect any databases in the project so I guess when I try to uploading to azure it doesnt link database of this project to my newly created database. Do you any suggestions for me? Thanks in advance.

npm install failed with errors

Hi,
I use Visual Studio 2017 Version 15.4.4 under Windows 7. Node Veriosn 8.9.1.

I start a new project with this template, but get errors like

Can't resolve '@angular/common' in .....

I try 'dotnet restore', and it works.
I try 'npm install' and it brings the following errors:

error path D:\Projekte\Angular04\Angular04\Angular04\node_modules\hawk\package.json.3634235696 error code EPERM error errno -4048 error syscall rename error Error: EPERM: operation not permitted, rename 'D:\Projekte\Angular04\Angular04\Angular04\node_modules\hawk\package.json.3634235696' -> 'D:\Projekte\Angular04\Angular04\Angular04\node_modules\hawk\package.json' error { Error: EPERM: operation not permitted, rename 'D:\Projekte\Angular04\Angular04\Angular04\node_modules\hawk\package.json.3634235696' -> 'D:\Projekte\Angular04\Angular04\Angular04\node_modules\hawk\package.json' error cause: error { Error: EPERM: operation not permitted, rename 'D:\Projekte\Angular04\Angular04\Angular04\node_modules\hawk\package.json.3634235696' -> 'D:\Projekte\Angular04\Angular04\Angular04\node_modules\hawk\package.json' error errno: -4048, error code: 'EPERM', error syscall: 'rename', error path: 'D:\\Projekte\\Angular04\\Angular04\\Angular04\\node_modules\\hawk\\package.json.3634235696', error dest: 'D:\\Projekte\\Angular04\\Angular04\\Angular04\\node_modules\\hawk\\package.json' }, error stack: 'Error: EPERM: operation not permitted, rename \'D:\\Projekte\\Angular04\\Angular04\\Angular04\\node_modules\\hawk\\package.json.3634235696\' -> \'D:\\Projekte\\Angular04\\Angular04\\Angular04\\node_modules\\hawk\\package.json\'', error errno: -4048, error code: 'EPERM', error syscall: 'rename', error path: 'D:\\Projekte\\Angular04\\Angular04\\Angular04\\node_modules\\hawk\\package.json.3634235696', error dest: 'D:\\Projekte\\Angular04\\Angular04\\Angular04\\node_modules\\hawk\\package.json', error parent: 'quickapp' }

Can anybody help me?

Error when creating roles

Hi,

I've been tinkering with your app, converting it for use in a prerendering / universal app, and it's taught me a lot thank you! For the most part I had no issues other than you'd expect with things like ngx-datatable which I had to replace with normal bootstrap styled tables.

There is a problem that I cant solve though, I thought it may just be me, so I downloaded a fresh copy of the master and tested, turns out it's a bug.

To reproduce, login as admin > go to settings > Role Managment > new Role > Complete form (I used all permissions).

The error is :

error
Cannot create an instance of abstract type System.Collections.Generic.ICollection1[Microsoft.AspNetCore.Identity.IdentityUserRole1[System.String]]. Parameter name: type

No doubt because of having to add the navigation properties for .net core 2.0, which had me running in circles until I saw you'd got it working.

I added break points and it seems to be when the Mapper is fired in the account controller>CreateRole method:

ApplicationRole appRole = Mapper.Map<ApplicationRole>(role);

I'm not really sure how to fix it, I did think of mapping it manually, so it would behave more like the DbInitializer role creation, but that option seems to be quite messy.

Again thank you for the time you took to make this, hopefully one day I can implement the things I've learned tinkering and actually make some money 🥇

EDIT:
I went ahead and done it manually whilst waiting to see if a fix is forthcoming.
I replaced the mapper with:

        ApplicationRole appRole = new ApplicationRole()
        {
          Name = role.Name,
          Description = role.Description
        };

Anonymous user

Hi,
How do i use this template if i dont want all my users to be forced to login.

I can use authguard to block areas they shouldnt access but by default every one should be able to access the site without login.

Problem displaying own static images

Hi.
I've used QuickApp as a base project and I started building my own application on top of it.
I've added my own images to the "ClientApp\app\assets\images" folder.
In my HomeComponent I've added this line:
AddBuildingPng = require("../../assets/images/AddBuilding.png");

In the template I added this line:
<img alt="AddBuildingPng" class="img-responsive" [src]="AddBuildingPng" />

When I inspect the generated code in chrome I can see that a base64 string was created but the image is not shown... only the alt text is shown.
I expect that the base64 generated string is not correct.

When I create a new Quick App project from Visual Studio 2017 and add the same code above it works and the image is displayed.

As another test I copied the base64 string generated by the QuickApp and pasted it as the source of the in my own application.
Now the image is displayed successfully.

So the base64 created by QuickApp seems to be correct.
The base64 created by MyApp seems to be incorrect.
So my question: is there a loader or a function somewhere that could affect the require keyword I've used and cause it to generate an incorrect base64 string when referencing an image?

Any ideas would be appreciated.

Unable to get customers

This isn't really a bug, just a feature request, would it be possible to get an example of how to pull customers data out of the api? I have been struggling with this as I am fairly new to angular and need the ability to do crud against the user and products tables, and just cannot seem to figure out how to do this.
So far I have started trying to build a customer-service to do it but I can't seem to get it working.. Here is what I have so far..
import { Injectable } from '@angular/core';
import { Router, NavigationExtras } from "@angular/router";
import { Http, Headers, Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import 'rxjs/add/observable/throw';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/do';
import { AccountEndpoint } from './account-endpoint.service';
import { AuthService } from './auth.service';
import { User } from '../models/user.model';
import { Role } from '../models/role.model';
import { Permission, PermissionNames, PermissionValues } from '../models/permission.model';
import { UserEdit } from '../models/user-edit.model';

@Injectable()
export class CustomerService {
private readonly _usersUrl: string = "/api/customer/users";
private readonly _userByUserNameUrl: string = "/api/customer/users/username";
private readonly _currentUserUrl: string = "/api/customer/users/me";
private readonly _currentUserPreferencesUrl: string = "/api/customer/users/me/preferences";
private readonly _unblockUserUrl: string = "/api/customer/users/unblock";

//public static readonly customerAddedOperation: CustomerChangedOperation = "add";
//public static readonly customerDeletedOperation: CustomerChangedOperation = "delete";
//public static readonly customerModifiedOperation: CustomerChangedOperation = "modify";
private _customerUrl = this._usersUrl

constructor(private router: Router, private http: Http, private authService: AuthService
    ) {

}
getCustomers() {
    return this.getCustomers;
}

}

DevExtreme Angular Integration

Hi. Can you help me with DevExtreme integration into your amazing project? Article https://github.com/DevExpress/devextreme-angular/blob/master/docs/using-webpack.md#import-devextreme-stylesheets describes how to include css in the project, but it does not work for me. I have included css as follows

@component({
selector: "quick-app",
templateUrl: './app.component.html',
styleUrls: ['./app.component.css', '../styles.css', '../themes.css', '../../../node_modules/devextreme/dist/css/dx.common.css', '../../../node_modules/devextreme/dist/css/dx.light.css'],
encapsulation: ViewEncapsulation.None
})

Is it right to do this or is there another way?

Thank you.

MSSQL DB and Linux

Hi.
Great template. Thank you for that.
I am wondering, is it possible to run it on a Linux machine, without buying an MS-SQL license?
From the connection string, it seems like the program connects to MSSQLLocalDB, so I guess I have to install MSSQL on my machine (which means I have to buy ms-sql server and install it on a Windows machine. Am I right ?).
Is it possible to make this project work with a free cross platform DB like postgresql or MongoDb ?

Thanks.

Hosting in IIS - Application under 'Default Web Site' - Unable to login

I created an application under 'Default Web Site' with name 'MyApp'. I am getting an error when trying to login. Some troubleshooting led me to this.

window.location.origin is coming as "http://localhost:8080/" and path as "myapp/login" instead of http://localhost:8080/myapp as the baseUrl.

Utiliites.ts

public static baseUrl() {
if (window.location.origin)
return window.location.origin

return window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');

}

.selectpicker() is not a function.

  1. I downloaded the template from GitHub.
  2. Build it after runing npm install.
  3. Run it and login successfully.
  4. When click on "Preferences", I found the attached error.

".selectpicker() is not a function.".

Any suggestions?

Uploading select_ a_picker_is_not_a_function.png…

.NET CORE 2

Hi
Do you have any plan for upgrading this project to .NET Core 2.0?
please have a plan :)

regards

Typescript errors on demo load

I get these errors launching project as is in VS 2017.
I upgraded VS 2017
Tried updating all versions using npm check updates.

ERROR in [at-loader] ./node_modules/rxjs/Subject.d.ts:16:22
TS2415: Class 'Subject' incorrectly extends base class 'Observable'.
Types of property 'lift' are incompatible.
Type '(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'Observable' is not assignable to type 'Observable'.
Type 'T' is not assignable to type 'R'.
ERROR in [at-loader] ./node_modules/rxjs/observable/dom/WebSocketSubject.d.ts:24:22
TS2415: Class 'WebSocketSubject' incorrectly extends base class 'AnonymousSubject'.
Types of property 'lift' are incompatible.
Type '(operator: Operator<T, R>) => WebSocketSubject' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'WebSocketSubject' is not assignable to type 'Observable'.
Types of property 'operator' are incompatible.
Type 'Operator<any, R>' is not assignable to type 'Operator<any, T>'.
Type 'R' is not assignable to type 'T'.

Difficulty connecting to local database

If I clone the repository and then do the build from the command per the ReadMe when I execute with "dotnet run" I get a failure of "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or not accessible". Ihave SQL Server 2017 installed on a Windows 10 64 bit system and the local database option was included in the installation.

If I edit appsettings.json and change the server definition from "(local)" to "localhost\SQLExpress" and do another "dotnet run" then the database is created and tables appear to be correctly populated.

If I then stop the running session and open the solution in VS2017 and do CTRL-F5 then there is an issue connecting to the database. I've attached the console log messages.
localhost-1508956499918.log

Any thoughts on the second issue which is not getting successfully connected to the database using a trusted connection?

Selectpicker is not a function

I am getting this js error when going to Settings -> Preferences. The alert prompts 6 or 7 times and makes all selections unusable.

ERROR TypeError: WEBPACK_IMPORTED_MODULE_1_jquery(...).selectpicker is not a function
at BootstrapSelectDirective.ngOnInit (main-client.js:6874)
at checkAndUpdateDirectiveInline (vendor.js:15593)
at checkAndUpdateNodeInline (vendor.js:17094)
at checkAndUpdateNode (vendor.js:17033)
at debugCheckAndUpdateNode (vendor.js:17894)
at debugCheckDirectivesFn (vendor.js:17835)
at Object.eval [as updateDirectives] (ng:///AppModule/UserPreferencesComponent.ngfactory.js:672)
at Object.debugUpdateDirectives [as updateDirectives] (vendor.js:17820)
at checkAndUpdateView (vendor.js:17000)
at callViewAction (vendor.js:17365)

Cannot launch in visual studio code

Hello,

I trying to launch the "QuickApp" by Visual Studio code by I receive always this error
Exception thrown: 'System.ArgumentNullException' in System.Private.CoreLib.ni.dll

And the app don't start.

Any idea ?

Thanks.

QuickApp Template can update but not refresh data on UI.

Dear Sir,

I used QuickApp - ASP.NET Core/AngularX Project Template on VS 2017. When I updated Job Title on User Profile setting menu, the updated data can save successfully but not show the updated value onscfreen. It's still show the old value before updated.

Can you help please.

thank you.

Version for VS 2017

Can you create a version for use within VS 2017 with the latest NETStandard/ASP.Net Core releases?

Build main-client.js in Linux

If you are ready to run quickapp under linux (see #19 & #20), before execute, you need to build main-client.js file.
For this, you need to execute two commands:

  • node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js --env.prod
  • node node_modules/webpack/bin/webpack.js --env.prod

First command, generate the dist dir in wwwroot.
Second command, build the main-client.js file.

npm fails on opening solution

I just did a git clone on this project, and opened the .sln in VS 2017. I see a npm-debug.log file created and destroyed in a loop with this content:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\mrichman\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'dev-build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev-build', 'dev-build', 'postdev-build' ]
5 info lifecycle [email protected]~predev-build: [email protected]
6 silly lifecycle [email protected]~predev-build: no script for predev-build, continuing
7 info lifecycle [email protected]~dev-build: [email protected]
8 verbose lifecycle [email protected]~dev-build: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~dev-build: PATH: C:\Users\mrichman\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\mrichman\Source\QuickApp\src\QuickApp\node_modules\.bin;C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.2;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\\MSBuild\15.0\bin;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\iis express\PHP\v5.4;C:\Program Files (x86)\Google\Chrome\Application;C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\devkit\mingw\bin;C:\devkit\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Users\mrichman\.dnx\bin;C:\code\bin;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft Team Foundation Server 2;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSH-Win64;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\vim\vim74;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Docker;C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools\;C:\Program Files (x86)\Skype\Phone\;C:\ProgramData\Oracle\Java\javapath\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\dotnet\;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Go\bin;C:\Program Files\Amazon\AWSCLI\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\mrichman\.dnx\bin;C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools;C:\Program Files\Sublime Text 3;C:\Program Files\nodejs;C:\Users\mrichman\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Vim\vim80;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft VS Code\bin;C:\OpenSSL-Win32\bin;C:\Users\mrichman\AppData\Roaming\npm;C:\Users\mrichman\AppData\Local\atom\bin;C:\Users\mrichman\go\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\
10 verbose lifecycle [email protected]~dev-build: CWD: C:\Users\mrichman\Source\QuickApp\src\QuickApp
11 silly lifecycle [email protected]~dev-build: Args: [ '/d /s /c',
11 silly lifecycle   'node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js' ]
12 silly lifecycle [email protected]~dev-build: Returned: code: 1  signal: null
13 info lifecycle [email protected]~dev-build: Failed to exec dev-build script
14 verbose stack Error: [email protected] dev-build: `node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:\Users\mrichman\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:194:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Users\mrichman\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:194:7)
14 verbose stack     at maybeClose (internal/child_process.js:899:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd C:\Users\mrichman\Source\QuickApp\src\QuickApp
17 error Windows_NT 10.0.14393
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mrichman\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev-build"
19 error node v7.9.0
20 error npm  v3.10.6
21 error code ELIFECYCLE
22 error [email protected] dev-build: `node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js`
22 error Exit status 1
23 error Failed at the [email protected] dev-build script 'node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the QuickApp package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs QuickApp
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls QuickApp
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Version Incompatibilities

I am having a problem getting the solution to build. Could you help me please. I had to upgrade my version of Visual Studio to 15.3.4 to overcome a number of issues about a missing reference to assembly 'netstandard, Version=2.0'.

However, the problems I now have are:

Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)

The current .NET SDK does not support targeting .NET Standard 2.0. Either target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0. DAL C:\Program Files\dotnet\sdk\1.1.0\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 126

The current .NET SDK does not support targeting .NET Core 2.0. Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.0. QuickApp C:\Program Files\dotnet\sdk\1.1.0\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 112

How can I resolve these issues?

Thanks.

Walter

Application configuration

On the settings page, in a tab for admin users, there could be a tab to change application settings, such as application name, footer text, application logo, and so on.
#enhancement

User registration

Great job on this template. It's incredibly well done and informative. Is it possible to add user signups/registrations ? tnx

roles feature does not seem to work--

I see from reviewing posts that someone else has already reported this, I just wanted to repeat what others have said, this is a great app and I really appreciate the time and effort that went into creating it.
I think i will learn a lot by going through and tinkering with it, and if I ever manage to have a few extra bucks, I will happily donate some money to support your efforts.

Also if you could add something for how to work with the customers, & orders to the app that would be helpful. I think I can see how it could be done by recreating a lot of the services and just modifying some code here and there, but I don't have a working implementation as every time I make a change it breaks so badly I cannot login, is there anyway to turn that off, so the app will allow me to debug where its failing?

Add Angular-CLI support

Please consider adding Angular-CLI support for creating the initial Angular 4.x code and for building.

It might actually simplify things.

context.CurrentUserId always null

Hi. I noticed that context.CurrentUserId always returns null. It seems the httpAccessor in the HttpUnitOfWork class is instantiated but it doesn't actually return the current user. Hence, CreatedBy and UpdatedBy are never updated.

I've tried to find a solution but it seems to me that after updating to the latest libraries this way of getting the current user, outside a controller, does not work. It always returns null.
Any suggestions?
Thanks.

Error - Unable to Login

I'm getting the following exception when I login. The OpenIddictAuthorizations only has the colums Id, ApplicationId, Scope, Status, and Subject. Could there have been some version changes in OpenIddict?

  Activated	Event	Time	Duration	Thread
Program Output: Microsoft.EntityFrameworkCore.Database.Command:Error: Failed executing DbCommand (90ms) [Parameters=[@p0='?' (Size = 450), @p1='?' (Size = 450), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000)], CommandType='Text', CommandTimeout='30']

SET NOCOUNT ON;
INSERT INTO [OpenIddictAuthorizations] ([Id], [ApplicationId], [Scopes], [Status], [Subject], [Type])
VALUES (@p0, @p1, @p2, @p3, @P4, @p5);
SELECT [Timestamp]
FROM [OpenIddictAuthorizations]
WHERE @@rowcount = 1 AND [Id] = @p0;

System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'Scopes'.
Invalid column name 'Type'.
Invalid column name 'Timestamp'.
at System.Data.SqlClient.SqlCommand.<>c.b__108_0(Task1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.d__17.MoveNext()
ClientConnectionId:4563d889-c9bd-4b61-a2e2-dcec43c20bd6
Error Number:207,State:1,Class:16 63.55s

Build Webpack fails

Hi,

I'm new in trying to use this repository. When I try to build the latest version with Visual Studio 2017, .net core 2.0, the build of webpack fails.

6777 verbose stack Error: The package webpack does not satisfy its siblings' peerDependencies requirements!
6777 verbose stack at C:\Program Files (x86)\nodejs\node_modules\npm\lib\install.js:125:32
6777 verbose stack at C:\Program Files (x86)\nodejs\node_modules\npm\lib\install.js:264:7
6777 verbose stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:138:5
6777 verbose stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:251:14
6777 verbose stack at cb (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
6777 verbose stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:251:14
6777 verbose stack at cb (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
6777 verbose stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:251:14
6777 verbose stack at cb (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
6777 verbose stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:251:14
6778 verbose cwd C:\Users\jh040194\Source\Repos\QuickApp\src\QuickApp
6779 error Windows_NT 6.1.7601
6780 error argv "C:\Program Files (x86)\nodejs\\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install"
6781 error node v0.12.2
6782 error npm v2.7.4
6783 error code EPEERINVALID
6784 error peerinvalid The package webpack does not satisfy its siblings' peerDependencies requirements!
6784 error peerinvalid Peer @ngtools/[email protected] wants webpack@^2.2.0 || ^3.0.0
6784 error peerinvalid Peer [email protected] wants webpack@^1.13.2 || ^2.1.0-beta
6784 error peerinvalid Peer [email protected] wants webpack@^3.1.0
6784 error peerinvalid Peer [email protected] wants webpack@^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0
6784 error peerinvalid Peer [email protected] wants webpack@^1.0.0 || ^2.0.0 || ^3.0.0
6784 error peerinvalid Peer [email protected] wants webpack@^1.0.0 || ^2.0.0 || ^3.0.0
6784 error peerinvalid Peer [email protected] wants webpack@^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0
6785 verbose exit [ 1, true

Also I've tried this node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js directly.
Then I'll got this answer:

C:\Users\jh040194\Documents\Visual Studio 2017\Projects\QuickApp-2.0\src\QuickAp
p\node_modules\webpack\bin\webpack.js:152
yargs.parse(process.argv.slice(2), (err, argv, output) => {
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

Any advise or help?
And by the way, I've tried everything mentioned in the "Installation Notes".
Regards,
Jakob

Using with Sqlite

I explain to use with SQlite.

  1. Add reference <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="1.1.2" /> in QuickApp.csproj, save and make a dotnet restore

  2. Modiffy connectionString in appsettings.json to "ConnectionString": "Filename=./QuickApp.sqlite" (give the filename if you want)

  3. Open Startup.cs and change the line 79 :
    options.UseSqlServer(Configuration["Data:DefaultConnection:ConnectionString"], b => b.MigrationsAssembly("QuickApp"));
    to
    options.UseSqlite(Configuration["Data:DefaultConnection:ConnectionString"], b => b.MigrationsAssembly("QuickApp"));

  4. Make a dotnet ef database update
    A new fold named Migrations is created with old file for SqlServer.

  5. In QuickApp folder execute with dotnet run

Server Side Rendering (SSR)

Hello, This is a very well organized, well-described ASP.NET Core project template with Angular 4 support. However, SSR or Server side rendering or pre-rendering feature should be used to make this template perform better and will definitely add User Experience.
How can I integrate server side rendering (SSR) with the project template?
Because SSR hugely improves performance in production servers (real scenarios). Please try to add files "ClientApp\boot.server.ts" and "ClientApp\App\app.module.{server/browser/shared}.ts" and edit webpack.config.js and webpack.config.vendor.js appropiately to enable SSR in the project

"The keyword 'integrated security' is not supported on this platform."

the dotnet restore & npm install work successfully, but when trying to run the app on macOS, this happens:

crit: QuickApp.Startup[101]
      Error whilst creating and seeding database
System.AggregateException: One or more errors occurred. (The keyword 'integrated security' is not supported on this platform.) ---> System.NotSupportedException: The keyword 'integrated security' is not supported on this platform.
   at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
   at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
   at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
   at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerConnection.CreateDbConnection()
   at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.<MigrateAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at DAL.DatabaseInitializer.<SeedAsync>d__4.MoveNext() in /Users/malachi/Projects/playground/playground.c#/src/PGC-14/Angular4/QuickApp/src/DAL/DatabaseInitializer.cs:line 46
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at QuickApp.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, IDatabaseInitializer databaseInitializer, ILoggerFactory loggerFactory) in /Users/malachi/Projects/playground/playground.c#/src/PGC-14/Angular4/QuickApp/src/QuickApp/Startup.cs:line 286
---> (Inner Exception #0) System.NotSupportedException: The keyword 'integrated security' is not supported on this platform.
   at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
   at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
   at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
   at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerConnection.CreateDbConnection()
   at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.<MigrateAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at DAL.DatabaseInitializer.<SeedAsync>d__4.MoveNext() in /Users/malachi/Projects/playground/playground.c#/src/PGC-14/Angular4/QuickApp/src/DAL/DatabaseInitializer.cs:line 46<---


Unhandled Exception: System.AggregateException: One or more errors occurred. (The keyword 'integrated security' is not supported on this platform.) ---> System.NotSupportedException: The keyword 'integrated security' is not supported on this platform.
   at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
   at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
   at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
   at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerConnection.CreateDbConnection()
   at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.<MigrateAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at DAL.DatabaseInitializer.<SeedAsync>d__4.MoveNext() in /Users/malachi/Projects/playground/playground.c#/src/PGC-14/Angular4/QuickApp/src/DAL/DatabaseInitializer.cs:line 46
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at QuickApp.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, IDatabaseInitializer databaseInitializer, ILoggerFactory loggerFactory) in /Users/malachi/Projects/playground/playground.c#/src/PGC-14/Angular4/QuickApp/src/QuickApp/Startup.cs:line 291
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at QuickApp.Program.Main(String[] args) in /Users/malachi/Projects/playground/playground.c#/src/PGC-14/Angular4/QuickApp/src/QuickApp/Program.cs:line 28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.