This is a simple web-api for npm/roastra
- Clone this Repo
git clone https://github.com/just-doodle/roastra-web-api.git
- Install dependencies
npm install
- Run server locally
npm run start
You can configure port in .env. Default port is 8000
After starting server, open
localhost:8000/roast/<name>
Parameter | Description | Optional | Default |
---|---|---|---|
name |
Name of the person (or any noun) | True | "You" |
?plural |
To set if name is plural |
True | false |
localhost:8000/roast/RockyGangsters?plural=true
/* RESPONSE
{
"sentance": "RockyGangsters are diseased as a inferior crapload of ignorant snake scrotum",
"name": "RockyGangsters"
}
*/
localhost: 8000 / roast / Rocky;
/* RESPONSE
{
"sentance": "Rocky is detestable as a infernal horde of naughty donkey toenails",
"name": "Rocky"
}
*/
localhost: 8000 / roast;
/* RESPONSE
{
"sentance": "You is stinky as a dirty pile of vile horse stench",
"name": "You"
}
*/
You can deploy this to Heroku or Vercel or, Clone this project and deploy somewhere else!
Support this project by ⭐ Starring this Repo or buy me a coffee!