You must install the following software in your system and make a test call to the Coordinista service before you can complete the related tutorials for the Coordinista service.
After you install all the necessary software, testing the service takes 20 minutes to complete.
To run the Coordinista service, you must have the following items installed and ready:
Sync your fork to get a current copy of the database.
node.js
Before you can test your service, ensure that you have created a fork of the Coordinista service and that your fork has a current copy of the database file.
Note: The service runs on the
http://localhost:3000
URL.
Enter the following command in your terminal to create a test branch of your fork:
ls
# lists all of the files in your fork of the Coordinista repository
git checkout -b tutorial-test
# creates the test branch of your fork
cd api
# changes the directory to the api file
json-server -w coordinista.db.json
# starts the json-server application
Make a test call to the service:
curl https://localhost:3000/clothing
[
{
"name": "long-sleeved shirt",
"type": "top",
"color": "black",
"description": "Sweat-wicking material, perfect for physical activity",
"outfits": ["mountain hiking outfit", "picnic outfit"],
"id": 1
},
{
"name": "waterproof pants",
"type": "bottom",
"color": "black",
"description": "Sturdy, breathable despite being waterproof",
"outfits": ["mountain hiking outfit"],
"id": 2
},
]
You have tested the service successfully. You can now perform the tasks in the related tutorials as needed.
Try your hand at our Quickstart tutorial: Get all outfits by season.