Skip to content

Know-as-a-Service (KaaS) is a simple API that returns a fact about Gaurav. Use it when you want a random, interesting facts about Gaurav — his education, work experience, skills, and achievements.

License

Notifications You must be signed in to change notification settings

kabragaurav/know-as-a-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 Know-as-a-Service (KaaS)

Ever needed a quick fact about Gaurav Kabra?
This tiny API returns random, interesting facts about Gaurav Kabra — his education, work experience, skills, and achievements.

Built for showcasing Gaurav's professional profile in a programmatic way.

🚀 API Usage

Base URL

GET /fact

Rate Limit: 120 requests per minute per IP

✅ Example Response

{
  "fact": "Gaurav Kabra holds the position of Member of Technical Staff at Salesforce."
}

Use it to learn more about Gaurav Kabra's professional background, skills, and accomplishments.


🛠️ Self-Hosting

Want to run it yourself? It's lightweight and simple.

1. Clone this repository

git clone https://github.com/kabragaurav/know-as-a-service.git
cd know-as-a-service

2. Install dependencies

npm install

3. Start the server

npm start

The API will be live at:

http://localhost:3000/fact

You can also change the port using an environment variable:

PORT=5000 npm start

📁 Project Structure

.
├── facts.json
├── index.js
├── LICENSE
├── package-lock.json
├── package.json
├── README.md
└── tree.txt

1 directory, 7 files

📦 package.json

For reference, here's the package config:

{
  "name": "know-as-a-service",
  "version": "1.0.0",
  "description": "A lightweight API that returns random fact about Gaurav Kabra.",
  "main": "index.js",
  "scripts": {
    "start": "node index.js"
  },
  "author": "Gaurav Kabra",
  "license": "MIT",
  "dependencies": {
    "express": "^4.18.2",
    "express-rate-limit": "^7.0.0"
  }
}

👤 Author

Created by Gaurav Kabra


📄 License

MIT

About

Know-as-a-Service (KaaS) is a simple API that returns a fact about Gaurav. Use it when you want a random, interesting facts about Gaurav — his education, work experience, skills, and achievements.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •