A news app using NextJS 13, Stepzen, GraphQL, TypeScript and TailwindCSS.
- NextJS 13 with appDir experimntal features and route groups
- Mediastack API
- GraphQL API queries using StepZen
- Dynamic/Static Data Fetching
- TypeScript
- TailwindCSS
- Search Functionality
- Dark Mode
- Fully Responsive
- Clone the project
git clone https://github.com/acmhub/nextjs-stepzen-news-api- Execute
npm installoryarnto install all the packages. - Go to mediastack and create an account.
- Copy the
API Access Keyfrom your mediastack dashboard.
- Copy the
- Go to stepzen and create an account.
- Copy your
API Key(not admin key) from your stepzen account
- Copy your
- Paste the keys in your .env.local file following this structure:
MEDIASTACK_API_KEY=your_api_access_key
STEPZEN_API_KEY=your_api_key
- Create an endpoint on your stepzen dashboard
- Update the
stepzen.config.jsonfile in the project directory with your endpoint name
{
"endpoint": "api/your_endpoint_name"
}
- Run
npm run devoryarn dev. - Go to http://localhost:3000.
