ijason / nodejs-sample-app Goto Github PK
View Code? Open in Web Editor NEWSample Employee CRUD application with Node.js, Express and MongoDB
Sample Employee CRUD application with Node.js, Express and MongoDB
node_modules folder shouldn't be added to the GitHub repository, and then when anyone clones your repo he can install using npm the suitable versions of your used packages
Is this in a mvc pattern
Here are detail:
{ TypeError: /usr/src/app/views/index.jade:6
nodejs | 4| h1= title
nodejs | 5| #employees
nodejs | > 6| - each employee in employees
nodejs | 7| div.employee
nodejs | 8| div.created_at= employee.created_at
nodejs | 9| div.title= employee.title
nodejs |
nodejs | Cannot read property 'length' of undefined
nodejs | at eval (eval at exports.compile (/usr/src/app/node_modules/jade/lib/jade.js:176:8), <anonymous>:50:35)
nodejs | at eval (eval at exports.compile (/usr/src/app/node_modules/jade/lib/jade.js:176:8), <anonymous>:201:4)
nodejs | at /usr/src/app/node_modules/jade/lib/jade.js:181:12
nodejs | at Object.exports.render (/usr/src/app/node_modules/jade/lib/jade.js:216:14)
nodejs | at View.exports.renderFile [as engine] (/usr/src/app/node_modules/jade/lib/jade.js:243:13)
nodejs | at View.render (/usr/src/app/node_modules/express/lib/view.js:75:8)
nodejs | at Function.app.render (/usr/src/app/node_modules/express/lib/application.js:504:10)
nodejs | at ServerResponse.res.render (/usr/src/app/node_modules/express/lib/response.js:753:7)
nodejs | at /usr/src/app/app.js:70:11
This shows the error Cannot read property 'title' of undefined when editing an employee. Also does not delete the employee from the database.
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.