Coder Social home page Coder Social logo

danwahlin / customermanagerstandard Goto Github PK

View Code? Open in Web Editor NEW
647.0 103.0 395.0 16.03 MB

Customer Manager AngularJS/BreezeJS Application.

License: MIT License

C# 4.82% CSS 1.06% JavaScript 90.86% HTML 3.21% Shell 0.02% Batchfile 0.01% ASP.NET 0.01% Pug 0.01%

customermanagerstandard's Issues

Not working with MongoDB 3.2.0

The Visual Studio and .NET build is working fine, but i'm looking to get it working with the MEAN stack. I have node-v5.2.0 and MongoDB 3.2.0. It starts up fine and the page loads, but it doesn't show any customer data (i have imported the data to MongoDB and the node.js window says "Customers count: 23"). I get following errors in browser console:

angular.js:12221SyntaxError: Unexpected token u
    at Object.parse (native)
    at vc (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js:15:313)
    at $b (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js:81:301)
    at https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js:82:216
    at n (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js:7:322)
    at ed (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js:82:198)
    at c (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js:83:382)
    at https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js:119:302
    at m.$eval (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js:134:83)
    at m.$digest (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js:131:106)(anonymous function) @ angular.js:12221
angular.js:12221TypeError: Cannot read property 'message' of undefined
    at customersController.js:124
    at angular.js:14454
    at m.$eval (angular.js:15719)
    at m.$digest (angular.js:15530)
    at m.$apply (angular.js:15824)
    at l (angular.js:10263)
    at M (angular.js:10435)
    at XMLHttpRequest.x.onload (angular.js:10376)

I've looked at the code a bit and there might be a problem on getCustomersSummary()-function in accessDB.js. The customersSummary that is in the callback seems to be left "undefined".

How change the text on Visual Studio?

If I change the text to the views inside visual studio 2017 and run node server.js I can see the translation of the text (top part of the picture) but If I run with F5 in Visual Studio (botom) still show the original version.

var NavbarController = function ($scope, $location, config, authService) {
        var vm = this,
            appTitle = 'Administrador de Vendedores';

What I have to do in VS so take the change in the view?

image

E2E-Test DeleteCustomerOnCardView() - fixed several issues

Mock delete customer 2 so it doesn't get deleted in the real database:

$httpBackend.whenDELETE('/api/dataservice/deleteCustomer/2').respond(
200, [], { 'X-InlineCount': 1} );

Because you need to be logged-in, let login call pass through

$httpBackend.whenPOST('/api/dataservice/login').passThrough();

The code to do the login

 ngDriver.Navigate().GoToUrl("http://localhost:58000/#/customers"); // org. code

// login before delete neccessary - little bit lengthy, but easier to debug ..
var loginBtn = ngDriver.FindElement(By.XPath("//a[contains(.,'Login')]"));
loginBtn.Click();
var eMail = ngDriver.FindElement(NgBy.Model("vm.email"));
eMail.SendKeys("[email protected]");
var password = ngDriver.FindElement(NgBy.Model("vm.password"));
password.SendKeys("password");

var loginBtnBottom = ngDriver.FindElement(By.XPath("//button[contains(.,'Login')]"));
loginBtnBottom.Click();
// END of login test code

var cardElement = ngDriver.FindElement(By.ClassName("cardContainer")); // org. code

and add vm. prefixes on some lines

.FindElement(NgBy.Binding("vm.totalRecords")); // vm. added
.FindElements(NgBy.Repeater("customer in vm.filteredCustomers")); // vm. added
Assert.AreEqual(1, cardElement.FindElements(NgBy.Repeater("customer in vm.filteredCustomers")).Count); // vm. added

add new fields list orders

How I can add new fields to the list of orders

I created new fields in the Orders table.
I added fields to the file order.cs and customer.js
I modified the file OrderTable.html. But I can not see setOrder ('myField')
Please I could put a clear example.

Thanks in advance

Problem on running

Hello.

I am using VS 2012 Express for Web. I downloaded your CustomerManagerStandard in order to learn how you developed a complete solution using AngularJS. However your solution is not running as many errors occurs on project build process. I read your instructions and you didn't mention any steps to follow in order to build the project.

Errors:
(403) Forbridden
Error 23 Unable to find version '1.4.8' of package 'Breeze.Server.ContextProvider'. CustomerManager
Error 24 Unable to find version '1.4.8' of package 'Breeze.Server.ContextProvider.EF6'. CustomerManager
Error 25 Unable to find version '1.4.8' of package 'Breeze.Server.WebApi2'. CustomerManager
Error 26 Unable to find version '1.4.8' of package 'Breeze.WebApi2.EF6'. CustomerManager
Error 27 Unable to find version '6.0.2' of package 'EntityFramework'. CustomerManager
Error 28 Unable to find version '2.1.0' of package 'jQuery'. CustomerManager
Error 29 Unable to find version '4.0.30506.0' of package 'Microsoft.AspNet.WebApi'. CustomerManager
Error 30 Unable to find version '5.0.0' of package 'Microsoft.AspNet.WebApi.Client'. CustomerManager
Error 31 Unable to find version '5.0.0' of package 'Microsoft.AspNet.WebApi.Core'. CustomerManager
Error 32 Unable to find version '5.0.1' of package 'Microsoft.AspNet.WebApi.OData'. CustomerManager
Error 33 Unable to find version '5.0.1' of package 'Microsoft.AspNet.WebApi.WebHost'. CustomerManager
Error 34 Unable to find version '5.6.0' of package 'Microsoft.Data.Edm'. CustomerManager
Error 35 Unable to find version '5.6.0' of package 'Microsoft.Data.OData'. CustomerManager
Error 36 Unable to find version '2.0.20710.0' of package 'Microsoft.Net.Http'. CustomerManager
Error 37 Unable to find version '1.0.0.0' of package 'Microsoft.Web.Infrastructure'. CustomerManager
Error 38 Unable to find version '6.0.1' of package 'Newtonsoft.Json'. CustomerManager
Error 39 Unable to find version '1.0.0' of package 'Q'. CustomerManager
Error 40 Unable to find version '2.1.6' of package 'RequireJS'. CustomerManager
Error 41 Unable to find version '5.6.0' of package 'System.Spatial'. CustomerManager
Error 42 Unable to find version '1.5.3' of package 'WebActivator'. CustomerManager

Please advice.

Update Customer does not work well

Some time it update customer correctly, but mostly it does not.
BUT the message says "Updated".

Would you please advise what is the problem?
I tried both with config Breeze true and false. The same issue persist.

Thank you!

Reinhard Sual

Edit Orders

Hi, I like your app. Can you add function to add orders?

Incorrect filter behaviour

If you fill filter as Jones (not existent name on 1st page) it will hide all records from 1st page, without asking backend, more over - if you go to 2nd and 3rd page it will show unfiltered results, and filter will be able to be updated by change the filter field only.

Unique e-mail error

I did everything by instruction but I keep getting this error no matter what. Everything else is functioning but this error keeps me from using the app. I did everything by instruction, mondo and mondodb are working great and I run similar apps with no issues.
capture

E2E-Test ShowTop10Customers() 2 vm. prefixes missing

public void ShowTop10Customers()
...
    .("customer in vm.filteredCustomers"));  // add "vm." (line 65)
...
    .FindElement(NgBy.Binding("vm.totalRecords"));   //add vm. (line 68)

Sorry, I don't know how to bring this changes into your code. I think fork and then edit my version, but didn't looked up how to request that you can merge my changes into your master ...

404 (Not Found) for /api/dataservice/customersSummary?$top=10&$skip=0

Hello, I got a simple error of 404 (Not Found) for URI: /api/dataservice/customersSummary?$top=10&$skip=0

I thought maybe I had copied wrong but I couldn't find the api folder nor anything titled 'customersSummary'. Can someone help provide guidance?

I see "dataService.js" in \CustomerManager\app\customersApp\services\ directory, I'm guessing I need MongoDB set up?

Missing States, unable to create new

Thinking it would be a good idea to pre-populate the states table for new installations. If not seeded, then adding new customers is not possible as the validation of the state field will never pass as there are no states to choose from.


Warning all users, read the FULL release notes (that means scroll down to the specific node instructions). My bad here folks, all works just fine if you follow all instructions)

Public Customer Manager in IIS

Hi
A week ago I download your Customer Project Manager, I have edited with Visual Studio 2013 and it works perfectly from VS.

But when I publish the project in IIS and call it from a browser application loads the right, try to load the data and the error "An error has ocurred" appears.

That may be happening

Resource interpreted as Image but transferred with MIME type text/html

Hi, I followed all steps and started the server. Everything loads fine except of images. Also tested this with https://github.com/DanWahlin/CustomerManager (same problem).

I tested this with Chrome & Firefox on Ubuntu 12.04 using the latest Node.js.
My console shows the following errors:

Resource interpreted as Image but transferred with MIME type text/html: "http://localhost:3000/Content/Images/people.png".
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost:3000/Content/Images/female.png".
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost:3000/Content/Images/male.png".

E2E-Test NoCustomersOnCardView() - pathes for .whenGET need fixing

//$httpBackend.whenGET(/^\/app\/partials\//).passThrough();  // line 80
$httpBackend.whenGET(/^\/app\/customersApp\/partials\//).passThrough();
//$httpBackend.whenGET(/^\/app\/views\//).passThrough();  // line 82
$httpBackend.whenGET(/^\/app\/customersApp\/views\//).passThrough();

And you can omit the leading \ after .whenGET(' ...

$httpBackend.whenGET('\/api/...  // Line 84

Apply require js on modalservice

Hi
I am using your code in my project but i cant apply require js on modal service .
can you give me a sample for that?

thank for nice project and right codes

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.