๐ Search and see the detail of your next product.
To run the project, just follow these steps:
- Clone this repository.
- Install dependencies
npm install
- Make sure you have the requested env vars (
.env
file). You can check the file.env.example
- Run the development command and have fun!
npm run dev
GET /search
Name | Type | Description | Default | Example |
---|---|---|---|---|
q | String | Query you want to search | '' | q='Telefono inteligente' |
limit | Number | Quantity of results | 50 | limit=1 |
{
author: {
name: String,
lastname: String,
},
categories: [String],
items: [
{
id: String,
title: String,
price: {
currency: String,
amount: Number,
decimals: Number,
},
picture: String,
condition: String,
free_shipping: Boolean,
}
],
}
GET /items/:id
{
author: {
name: String,
lastname: String,
},
item: {
id: String,
title: String,
price: {
currency: String,
amount: Number,
decimals: Number,
},
picture: String,
condition: String,
free_shipping: Boolean,
sold_quantity: Number,
description: String
}
}
This project has CI with Heroku.
- Express
- Husky
- Git Flow
The MIT License (MIT)