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.
- 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.
To get started with FastFind, follow these steps:
- Clone the repository from GitHub:
Replace
git clone https://github.com/username/FastFind.git
username
with the actual username or organization name. - 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.
Before running the application, ensure you have set up the required environment variables for Upstash Redis.
[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.
To run the application in development mode, follow these steps:
- Ensure you have Node.js and npm installed on your machine.
- Open your command line interface (CLI) or terminal.
- Navigate to the root directory of the FastFind application.
- 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.jsonFastFind is configured for deployment on Vercel with Cloudflare Workers. To deploy, follow these steps:
- 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
yarn deploy