A news website that uses the NYTimes API to fetch news articles.
- Clone the repository
- Run
yarn
to install the dependencies - Create a
.env
file in the root directory and add the following:ReplaceNEXT_PUBLIC_NYTIMES_API_KEY=YOUR_API_KEY
YOUR_API_KEY
with your NYTimes API key which you can get here - Run
yarn dev
to start the development server and navigate tohttp://localhost:3000
(or the port specified in the terminal) to view the website - Or you can view the deployed website here
/
- Home page - Displays the news articles available to buymy-articles
- My Articles page - Displays the articles that the user has boughtget-lucky
- Get Lucky page - A lucky draw page where the user can win a free coins