It shows News of different Countries, Top-Headlines and news from Everywhere.
- Reactjs
- Tailwind CSS
- Express
- External API from newsapi.org
- Clone the repository.
- Open a terminal in the root directory of the project.
cd client/
npm install
npm run dev
- In Case of CORS error, Add the following line in the package.json file -:
"proxy": "http://localhost:3000",
- Open a new Terminal in the root directory of the project
cd server/
npm install
- Get the API Key from newsapi.org.
- Create a file named .env inside server folder
- Add the following in the .env file -:
API_KEY = <Your API Key>
- Now run the command to run the project-:
npm start