Skip to content

senthilmca90/mern-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mern-crud

Getting Started

Preview

Preview

Express(server)

git clone https://github.com/senthilmca90/mern-crud.git

cd mern-crud/server
npm install
npm start

Open http://localhost:3001

Check http://localhost:3001/api/customers

output

{
    "success": true,
    "message": "Customers fetched successfully",
    "customers": []
}

Postman

Post API

http://localhost:3001/api/customers

{
	"firstName": "senthil",
    "lastName": "kumar"
}

Output

{
    "success": true,
    "message": "Customer fetched successfully",
    "result": {
        "firstName": "senthil",
        "lastName": "kumar",
        "_id": "5b376579a6555b0b9c7861ae",
        "createdAt": "2018-06-30T11:11:53.703Z",
        "updatedAt": "2018-06-30T11:11:53.703Z",
        "customerId": 1,
        "__v": 0
    }
}

React-Rdux(client) - Side

Preview

Preview

cd mern-crud/client
npm install
npm start

Open http://localhost:3000