Comments (5)
I have considered forking this project and moving it to Node+Mongo. Any interest? Dan, what are your thoughts? Is this on your roadmap, or would you accept a Pull Request for this?
from customermanager.
Hey Mike,
I’m definitely interested in that - would love to offer a Node.js/MongoDB backend (even mention that at the bottom of the readme :)). I started working on that very thing last night actually but will happily take a pull request if you have some time to start it.
I do plan to use the Customer Manager code base in some video classes and potentially some books (so you know upfront) but I’d of course give you credit if you contribute to it. :-)
Thanks,
Dan
From: Mike Erickson [mailto:[email protected]]
Sent: Wednesday, September 18, 2013 12:51 PM
To: DanWahlin/CustomerManager
Subject: Re: [CustomerManager] NodeJS+MongoDB backend (#6)
I have considered forking this project and moving it to Node+Mongo. Any interest? Dan, what are your thoughts? Is this on your roadmap, or would you accept a Pull Request for this?
—
Reply to this email directly or view it on GitHub #6 (comment) . https://github.com/notifications/beacon/-qe5h4jddzcHcmhqXzVhYzdrAjHhjQSdM55bp21_bgMLt2DCWwgJNhuTl0CPjQP5.gif
from customermanager.
Reviewing the code and it seems the code is abstracted pretty cleanly (of course) and moving to a Node/MongoDB backend would pretty straight forward. Any chance you can supply a SQL dump of the existing database?
from customermanager.
Here's what the tables looks like - nice and simple. It's probably easier (from a MongoDB perspective anyway) to look at the classes in the Model folder since ultimately that's what will go in there. But, here are the schemas if you want them:
CREATE TABLE [dbo].[Customers]([Id] INT IDENTITY %281, 1%29 NOT NULL,
[FirstName] NVARCHAR %2850%29 NULL,
[LastName] NVARCHAR %2850%29 NULL,
[Email] NVARCHAR %28100%29 NULL,
[Address] NVARCHAR %281000%29 NULL,
[City] NVARCHAR %2850%29 NULL,
[StateId] INT NOT NULL,
[Zip] INT NOT NULL,
[Gender] INT NOT NULL,
CONSTRAINT [PK_dbo.Customers] PRIMARY KEY CLUSTERED %28[Id] ASC%29,
CONSTRAINT [FK_dbo.Customers_dbo.States_StateId] FOREIGN KEY %28[StateId]%29 REFERENCES [dbo].[States] %28[Id]%29 ON DELETE CASCADE);
CREATE TABLE [dbo].[Orders]([Id] INT IDENTITY %281, 1%29 NOT NULL,
[Product] NVARCHAR %2850%29 NULL,
[Price] DECIMAL %2818, 2%29 NOT NULL,
[Quantity] INT NOT NULL,
[Date] DATETIME NOT NULL,
[CustomerId] INT NOT NULL,
CONSTRAINT [PK_dbo.Orders] PRIMARY KEY CLUSTERED %28[Id] ASC%29,
CONSTRAINT [FK_dbo.Orders_dbo.Customers_CustomerId] FOREIGN KEY %28[CustomerId]%29 REFERENCES [dbo].[Customers] %28[Id]%29 ON DELETE CASCADE);
CREATE TABLE [dbo].[States]([Id] INT IDENTITY %281, 1%29 NOT NULL,
[Abbreviation] NVARCHAR %282%29 NULL,
[Name] NVARCHAR %2825%29 NULL,
CONSTRAINT [PK_dbo.States] PRIMARY KEY CLUSTERED %28[Id] ASC%29);
Thanks,
Dan
from customermanager.
Mike,
Just as a heads-up, Tony beat us both to the punch and just sent a nice code-base over for Node.js/Express/MongoDB. I didn't want you wasting any time on it since I know were considering doing some work there. I put in a little work but not enough to worry about. :-) Thanks for the offer to work on that. I'm open to other back-ends too and may look into some other options for people to have as a reference.
from customermanager.
Related Issues (20)
- disable motion continuous creation of bbdd for developing HOT 1
- Can not load the seed files. HOT 2
- app.js is deprecated due to express HOT 2
- pagination cannot be changed to page size other than 10 HOT 1
- RequireJS caching objects HOT 2
- Cannot load app HOT 8
- Unable to load customer list HOT 4
- How to execute code? HOT 2
- IE 10 issue HOT 1
- Uncaught Error: Script error for: /services/routeResolver HOT 1
- new project throws exception HOT 1
- Error 324 (net::ERR_EMPTY_RESPONSE) #2332 HOT 1
- httpInterceptors doesn't work ;)
- Login Click keep adding login to the path HOT 1
- How to close modal from the custom modal controller? HOT 2
- ModalService – How to re-use custom controller (assign data when showModal())? HOT 1
- angular hotkeys HOT 1
- No solution in download HOT 1
- my
- my project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from customermanager.