kiss-backend (keep it simple (stupid) backend) is a simple Node.js application designed to serve as a backend for frontend applications. It provides two endpoints, /my-post-first
and /my-post-second
, both returning a specific response based on the input data and headers.
you may want to use this this (even though there is something called httpbin)because when you use this you'll not be rate limited and you can change anything you want here.
- post this body to above endpoint
{
"myInput": "something"
}
- and a header:
who:alper
- you'll get this response:
{
"result": [
"s-something-alper-0",
"s-something-alper-12",
"s-something-alper-24",
"s-something-alper-36",
"s-something-alper-48",
"s-something-alper-60",
"s-something-alper-72",
"s-something-alper-84",
"s-something-alper-96",
"s-something-alper-108"
]
}
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js installed on your machine
npm install
Start the Node.js server:
npm start
By default, the server will run on https://localhost:3000.