API to serve react-store
--
- Start mongo connection:
sudo mongod --dbpath react-store-api
- Run
node db_seed.js
to populate local server - Run
node server.js
Return all products from mongo collection.
Create a new product:
{
"name": "String",
"description": "String",
"images": "[String]",
"options": {
"colors": "[String]",
"size": "[String]"
}
}