Globe Talks is a news website built using ReactJS and Vite, with Tailwind CSS for styling. The website fetches news from the Google News API, allowing users to receive news based on their selected language and region. It supports over 145 languages and countries and is fully responsive.
Globe Talks provides a seamless experience for browsing news articles from around the world. With features like language and region selection, pagination, and responsive design, users can easily find and read the news that matters to them.
- Language Selector: Choose news in different languages.
- Region Selector: Get news specific to over 130 countries.
- Pagination: Easily navigate through different pages of news.
- Routing: Smooth navigation across different sections of the site.
- Responsive Design: Fully responsive for all device sizes.
Explore the live version of Globe Talks: Globe Talks
The project structure is organized as follows:
globe-talks/
├── src/
│ ├── assets/
│ │ ├── convertTimeStamp.js
│ │ ├── Loader.js
│ │ ├── pagination.js
│ ├── components/
│ │ ├── Footer.jsx
│ │ ├── Header.jsx
│ │ ├── LanguageSelector.jsx
│ │ ├── Pagination.jsx
│ │ ├── SearchBar.jsx
│ ├── context/
│ │ ├── Context.js
│ │ ├── LanguageContext.js
│ ├── images/
│ │ ├── logo.png
│ ├── pages/
│ │ ├── About.jsx
│ │ ├── Business.jsx
│ │ ├── Contact.jsx
│ │ ├── Entertainment.jsx
│ │ ├── Error.jsx
│ │ ├── Health.jsx
│ │ ├── Home.jsx
│ │ ├── index.js
│ │ ├── Latest1.jsx
│ │ ├── Loader.jsx
│ │ ├── Science.jsx
│ │ ├── Search.jsx
│ │ ├── Sport.jsx
│ │ ├── Technology.jsx
│ │ ├── World.jsx
│ ├── redux/
│ │ ├── store.js
│ │ └── googlenews/
│ │ ├── googlenews.js
| ├── index.html
| ├── app.jsx
| ├── app.css
| ├── index.css
| ├── Layout.jsx
| ├── main.jsx
├── .env
├── .gitignore
├── package.json
├── README.md
├── tailwind.config.js
└── vite.config.js
Follow these steps to set up the project locally:
- Clone the repository git clone https://github.com/Prince3255/globe-talks.git cd globe-talks
- Install dependencies npm install
- Add your API Key Create a .env file in the root directory and add your Google News API key: VITE_GOOGLE_NEWS_API_KEY=your_api_key_here
- Run the development server npm run dev
After starting the development server, open your browser and navigate to http://localhost:5173. You can then start using the site to browse news by language and region.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch: git checkout -b feature/your-feature-name.
- Make your changes and commit them: git commit -m 'Add some feature'.
- Push to the branch: git push origin feature/your-feature-name.
- Open a Pull Request.
- Google News API (Rapid api)
- ReactJS
- Tailwind CSS
- Vite
- Redux
- React icons
- GitHub