Git Product home page Git Product logo

didinj / mern-stack-crud Goto Github PK

View Code? Open in Web Editor NEW
173.0 14.0 93.0 20 KB

MERN stack (MongoDB, Express, React and Node.js) create read update and delete (CRUD) web application example

Home Page: https://www.djamware.com/post/59faec0a80aca7739224ee1f/building-crud-web-application-using-mern-stack

License: MIT License

JavaScript 90.25% HTML 7.62% CSS 2.13%
mern mern-stack mernstack mongo mongodb express expressjs mongoose mongoosejs react

mern-stack-crud's Introduction

Building CRUD Web Application using MERN Stack

This source code is part of Building CRUD Web Application using MERN Stack tutorial.

If you think this source code is useful, it will be great if you just give it star or just buy me a cup of cofee Donate

To run this app:

  • Clone this repo
  • Run npm install
  • Run npm run build
  • Run npm start

mern-stack-crud's People

Contributors

didinj 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

mern-stack-crud's Issues

Unable to access object property in react render()

Hi,

I am using a similar template for my employee CRUD application. Below is my code in Show.js

componentDidMount() {
//console.log("Id in ShowJS" + this.props.match.params.id);
axios.get('/employees/'+ this.props.match.params.id)
.then(res => {
this.setState({ employee: res.data });
console.log(this.state.employee[0].salary);
});
}
//The salary property is printed fine here.

below is the render code:
return (
div class="panel-heading">

{this.state.employee[0].salary}

)

//Unable to access salary property here
Getting below error
Objects are not valid as a React child (found: object with keys {id, name, designation, dob, salary}).

Any help please?

Error: No default engine was specified and no extension was provided

Hi !
I installed this app, after running it is showing the following error
Error: No default engine was specified and no extension was provided.
at new View (D:\xampp\htdocs\mp\5\node_modules\express\lib\view.js:61:11)
at Function.render (D:\xampp\htdocs\mp\5\node_modules\express\lib\application.js:570:12)
at ServerResponse.render (D:\xampp\htdocs\mp\5\node_modules\express\lib\response.js:1008:7)
at D:\xampp\htdocs\mp\5\app.js:37:7
at Layer.handle_error (D:\xampp\htdocs\mp\5\node_modules\express\lib\router\layer.js:71:5)
at trim_prefix (D:\xampp\htdocs\mp\5\node_modules\express\lib\router\index.js:315:13)
at D:\xampp\htdocs\mp\5\node_modules\express\lib\router\index.js:284:7
at Function.process_params (D:\xampp\htdocs\mp\5\node_modules\express\lib\router\index.js:335:12)
at next (D:\xampp\htdocs\mp\5\node_modules\express\lib\router\index.js:275:10)
at D:\xampp\htdocs\mp\5\app.js:26:3
at Layer.handle [as handle_request] (D:\xampp\htdocs\mp\5\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (D:\xampp\htdocs\mp\5\node_modules\express\lib\router\index.js:317:13)
at D:\xampp\htdocs\mp\5\node_modules\express\lib\router\index.js:284:7
at Function.process_params (D:\xampp\htdocs\mp\5\node_modules\express\lib\router\index.js:335:12)
at next (D:\xampp\htdocs\mp\5\node_modules\express\lib\router\index.js:275:10)
at SendStream.error (D:\xampp\htdocs\mp\5\node_modules\serve-static\index.js:121:7)
at emitOne (events.js:116:13)
at SendStream.emit (events.js:211:7)
at SendStream.error (D:\xampp\htdocs\mp\5\node_modules\send\index.js:270:17)
at SendStream.onStatError (D:\xampp\htdocs\mp\5\node_modules\send\index.js:421:12)
at next (D:\xampp\htdocs\mp\5\node_modules\send\index.js:764:28)
at D:\xampp\htdocs\mp\5\node_modules\send\index.js:772:23

Please solve this issue
Thanks in advance....

No default engine... with IP address

Hi,
thank you for the turtorial and the source!
I'm trying to get this app runing with IP address of computer and always get this: "Error: No default engine was specified and no extension was provided.".
And I didn't find a suitable solution on web.
Thank you,
Mike.

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.