Skip to content

this documentation simple crud with express , hope be useful

Notifications You must be signed in to change notification settings

4212ganteng/crud-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Body parser

src : yarn add body-parser

use body parser to convert to json format, will be EZ to console from re.body😎

connect with mongo atlas

// db
const conectDB = () => {
  try {
    mongoose.connect(
      "mongodb+srv://root:[email protected]/?retryWrites=true&w=majority"
    );

    // server
    app.listen(port, () => {
      console.log(`Server runing on ${port}`);
    });
  } catch (error) {
    console.log("eror connection");
  }
};

conectDB();

About

this documentation simple crud with express , hope be useful

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published