Exploration of using PostgreSQL and Redis to do vector searches to rank and highlight search results
This is a Next.js project bootstrapped with create-next-app
.
This project was deployed as a hobby project on Vercel. Check it out at the link https://rank-highlight-webpage.vercel.app/
First, run the backend:
docker compose up --build --detach
Then, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
Ctrl + C
will end the development server. But to end the backend databases, we have to send a custom Docker command:
docker kill docker-redis-1 docker-postgres-1
docker rm $(docker ps -aq) # remove the container images from local machine
The names might be slightly different if you don't clean up often.
NextJS App router using a src/
folder.
Using Husky this project enforces code quality and stylizations.
Linting with ESLint and code styles from Prettier.
TODO
Use Cypress for E2E and component testing with snapshots.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.