https://main--newsblog-typescript.netlify.app/
A blog where you can have informations about :
- weather report
- real-time cryptocurrency prices
- the ranking of the best films by popularity
Clone the project
git clone https://github.com/thomas37000/newsblog
Go to the project directory
cd newsblog
Install dependencies
npm install
Start the server
npm run start
https://api.themoviedb.org/3/discover/movie/popular?api_key=${API_MOVIE_KEY}&language=${language}&sort_by=${popularity}&include_adult=false&include_video=false&page=${pagesShow}&with_watch_monetization_types=${monetisation}
Parameter | Type | Description |
---|---|---|
API_MOVIE_KEY |
string |
Required. Your API key |
language |
string |
fr for France, en-US for English |
sort_by |
string |
popularity filter |
export const ImgMovieApi= "https://image.tmdb.org/t/p/w1280"
<img src={ImgMovieApi + movie.backdrop_path} alt={movie.title} />
GET https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&page=1&sparkline=false
GET https://api.coingecko.com/api/v3/coins/${id}?localization=false&tickers=false&market_data=false&community_data=false&sparkline=false
https://api.openweathermap.org/data/2.5/weather
Parameter | Type | Description |
---|---|---|
API_WEATHER_KEY |
string |
Required. Your API key |
Here for exemple i get the weather of my city "Nantes"
https://api.openweathermap.org/data/2.5/weather?q=Nantes&appid=${API_WEATHER_KEY}&units=metric
Parameter | Type | Description |
---|---|---|
API_WEATHER_KEY |
string |
Required. Your API key |
must paid if you want to build https://newsapi.org/pricing
https://newsapi.org/v2/top-headlines?country=fr&category=entertainment&apiKey=${API_KEY}
Parameter | Type | Description |
---|---|---|
country |
string |
fr - for France |
category |
string |
entertainment for exemple |
API_KEY |
string |
Required. Your API key |