FastFind Project

FastFind is a high-performance API designed to provide rapid search results. Built with Next.js,Hono and TailwindCSS, it leverages Upstash Redis for data storage and retrieval, ensuring quick response times for search queries.

Features

  • High-Performance Search: Utilizes Upstash Redis for efficient data storage and retrieval.
  • Modern UI: Built with Next.js and styled using TailwindCSS for a responsive and modern interface.
  • Serverless Deployment: Deployed on Vercel with serverless functions for scalability and ease of maintenance.

FastFind Installation

To get started with FastFind, follow these steps:

  1. Clone the repository from GitHub:
    git clone https://github.com/username/FastFind.git
    Replace username with the actual username or organization name.
  2. Install the dependencies:

    If you're using npm:

    npm install

    If you're using yarn:

    yarn install

    Make sure you have Node.js and npm (or yarn) installed on your machine.

FastFind Configuration

Before running the application, ensure you have set up the required environment variables for Upstash Redis.

Setting up environment variables in wrangler.toml:

[vars]
UPSTASH_REDIS_REST_TOKEN='your_upstash_redis_rest_token'
UPSTASH_REDIS_REST_URL='your_upstash_redis_rest_url'
    

Replace your_upstash_redis_rest_token with your Upstash Redis REST token and your_upstash_redis_rest_url with your Upstash Redis REST URL.

Save the changes in your wrangler.toml file.

Running the FastFind Application

To run the application in development mode, follow these steps:

  1. Ensure you have Node.js and npm installed on your machine.
  2. Open your command line interface (CLI) or terminal.
  3. Navigate to the root directory of the FastFind application.
  4. Run the following command to start the application in development mode:
npm run dev

This command will start the FastFind application in development mode.

Deployment FastFind is configured for deployment on Vercel with Cloudflare Workers. To deploy, use the provided script: Add this line is package.json

FastFind is configured for deployment on Vercel with Cloudflare Workers. To deploy, follow these steps:

  1. Ensure you have Wrangler installed. If not, you can install it globally via npm:
"deploy": "wrangler deploy --minify --name fastfind src/app/api/[[...route]]/route.ts"
pnpm install wrangler -D
Run this command
yarn deploy

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any improvements or bug fixes.