https://github.com/karabharat/full-stack-global-search-demo
Global search interface with filter and infinite scrolling functionality.
https://github.com/karabharat/full-stack-global-search-demo
Last synced: 3 months ago
JSON representation
Global search interface with filter and infinite scrolling functionality.
- Host: GitHub
- URL: https://github.com/karabharat/full-stack-global-search-demo
- Owner: KaraBharat
- License: other
- Created: 2024-10-10T11:57:11.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T07:58:45.000Z (11 months ago)
- Last Synced: 2025-03-30T09:05:46.512Z (6 months ago)
- Language: TypeScript
- Homepage: https://full-stack-global-search-demo.vercel.app
- Size: 213 KB
- Stars: 108
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Tools used to build this project
- Next.js
- React
- HonoJs
- Zod
- Neon
- PostgreSQL
- Drizzle
- Zustand
- Shadcn UI
- Framer Motion
- TypeScript
- TailwindCSS## Getting Started
First, run the development server:
## Create account and database on Neon
Go to [Neon](https://neon.tech/) and create an account.
Create a new project and select the free tier.
## Install Package
```bash
npm install
```## Set database connection URL
Create a `.env` file and set the database connection URL.
```bash
DATABASE_URL='postgresql://xxxxxxx-xxxxxx:xxxxxxx-xxxxxx@xxxxxxx-xxxxxx.db.neon.tech/xxxxxxx-xxxxxx?sslmode=require'
```## Generate Database
```bash
npm run db:generate
```## Migrate Database
```bash
npm run db:migrate
```## Run Studio
```bash
npm run db:studio
```## Run Server
```bash
npm run dev
```## Database sample data script path
```bash
sample-data-script/dump-global-search-app-202410091318.sql
```## Run sample data script using Neon SQL Editor
Go to [Neon Studio](https://studio.neon.tech/) and run the sample data script.
```sql
\i sample-data-script/dump-global-search-app-202410091318.sql
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
[](https://buymeacoffee.com/bharatkara)
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.