Skip to content

πŸ” AI-Verse API β€” Search AI tools by name or tags βš™οΈ Built with Express + MongoDB, deployed on Vercel πŸš€

Notifications You must be signed in to change notification settings

VoyagerX21/AIVerse-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 AI-Verse API

AI-Verse API is a Node.js + Express server that connects to a MongoDB database to provide a searchable list of AI tools by name and tags. Deployed serverlessly on Vercel.

πŸ”— Live API Endpoint

https://ai-verse-api.vercel.app/search

πŸ“¦ Features

  • πŸ” Full-text search on AI tools
    • Matches tools by name or tags
    • Case-insensitive partial search
  • 🌐 Live & serverless with Vercel
  • πŸ—ƒοΈ MongoDB (Atlas) as database

πŸ”§ Tech Stack

  • Node.js + Express.js
  • MongoDB + Mongoose
  • Vercel for deployment
  • dotenv for managing secrets

πŸ“ Project Structure

.
β”œβ”€β”€ api
β”‚   └── index.js           # Entry point for Vercel
β”œβ”€β”€ config
β”‚   └── db.js              # MongoDB connection
β”œβ”€β”€ models
β”‚   └── ai_tools.js        # Mongoose schema
β”œβ”€β”€ routes
β”‚   └── search.js          # POST /search route
β”œβ”€β”€ server.js              # Express app setup
β”œβ”€β”€ .env                   # MongoDB credentials
β”œβ”€β”€ vercel.json            # Vercel config

πŸš€ How to Use

πŸ”Έ POST /search

URL: https://ai-verse-api.vercel.app/search
Method: POST
Headers:

Content-Type: application/json

Body:

{
  "query": "music"
}

Returns:

[
  {
    "_id": "...",
    "name": "DeepBeat",
    "tags": ["music", "lyrics", ...],
    ...
  },
  ...
]

πŸ› οΈ Local Development

# Clone repo
git clone https://github.com/your-username/ai-verse-api.git
cd ai-verse-api

# Install dependencies
npm install

# Create .env file
echo "MONGODB_URI=your_mongodb_connection_string" > .env

# Run locally
npm start

πŸ“„ Vercel Deployment

Your vercel.json should look like this:

{
  "version": 2,
  "builds": [
    {
      "src": "api/index.js",
      "use": "@vercel/node"
    }
  ],
  "routes": [
    {
      "src": "/(.*)",
      "dest": "api/index.js"
    }
  ]
}

About

πŸ” AI-Verse API β€” Search AI tools by name or tags βš™οΈ Built with Express + MongoDB, deployed on Vercel πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published