1 . Clone this repo to anywhere on your computer.
git clone https://github.com/tantv/eccube-server.git
2 . Install dependencies
npm install
3 . Start server
npm start
4 . Open on local
http://localhost:3000/
5 . Change db.json
to your own content according to the json-server example
and then commit
your changes to git.
_this example will create /products
route , each resource will have id
, name
and category
.
{
"products":[
{
"id" : 1,
"name": "Product Name 1",
"category" : "Category 1"
},
{
"id" : 2,
"name": "Product Name 2",
"category" : "Category 2"
}
]
}
Go to json-server
for more details.