This is a news hub application that allows users to view news articles from various sources.
Main motive of this project is to impliment the "Open Graph" protocol to to show the preview of the news article when user share the link of the article on social media.
Project Link: https://og-gen-iota.vercel.app/
you can verify by taking the url of any post and post over here: https://www.opengraph.xyz/
- Node.js and npm installed on your machine, You can download it from the official website: https://nodejs.org/en/download
- Git, you'll need it to clone the repository, you can download it from the official website: https://git-scm.com/downloads
- Clone the repository:
git clone https://github.com/gouravg8/og-gen.git
- Make .env file and add the following environment variables:
# frontend
copy variables from .env.example file to .env.local file or .env
- Install pnpm
npm install -g pnpm
- Install dependencies:
pnpm install
- Run project locally:
pnpm run dev
- Hit the API endpoint: using Postman, Thunder client or any other tool to initialize the database:
POST http://localhost:3000/api/posts
- Frontend: Next.js, TypeScript, Tailwind CSS
- Backend: NextJs(Server Actions and API endpoints)
- Database: PostgreSQL
- ORM: Prisma
- Deployed on: Vercel
- Get the all news articles from our Database
- User can get the preview of the news article when user share the link of the article on social media.