node >= v15.11.0
(Might work for lower version but not tested)
cp .env.dist .env
yarn install
yarn dev
Response: HTTP 200
[
{
"name": "Bash",
"price": 10,
"linesPerMillisecond": 0.1
},
{
"name": "Git",
"price": 100,
"linesPerMillisecond": 1.2
},
{
"name": "Javascript",
"price": 10000,
"linesPerMillisecond": 14
},
{
"name": "React",
"price": 50000,
"linesPerMillisecond": 75
},
{
"name": "Vim",
"price": 1000000,
"linesPerMillisecond": 10000
}
]
Response: HTTP 200
{
"name": "Bash",
"price": 10,
"linesPerMillisecond": 0.1
}
Body:
{
"name": "Svelte",
"price": 40000,
"linesPerMillisecond": 45.0
}
Response: HTTP 201
{
"id": 1615820488694,
"name": "Svelte",
"price": 40000,
"linesPerMillisecond": 45.0
}
Body:
{
"name": "Svelte",
"price": 40000,
"linesPerMillisecond": 45.0
}
Response: HTTP 200
{
"id": 1615820488694,
"name": "Svelte",
"price": 40000,
"linesPerMillisecond": 45.0
}
Response: HTTP 204