mern-crud
mern-crud copied to clipboard
mern crud operation
mern-crud
Getting Started
Preview
Express(server)
git clone https://github.com/senthilmca90/mern-crud.git
cd mern-crud/server
npm install
npm start
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
cd mern-crud/client
npm install
npm start