Skip to content

Chinmayee7697/LatestNewsProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LatestNewsProject

Basic news website build with Node.js, Express & EJS – WP Rest API

Website is live on https://news-website-l09b.onrender.com/

npm npm Build Status

The data for the articles will come from a no-auth newsapi.

API_URL= https://raddy.dev/wp-json/wp/v2/posts/

Go through the documentation to see the detailed version of how to use this API.

Add to your project

initialise the project

  $ npm init

install all the dependencies

  $ npm i express axios body-parser ejs

install the nodemon

  $ npm i --save-dev nodemon

start our local server

  $ nodemon index.js

Endpoints

Important API urls are

https://raddy.dev/wp-json/wp/v2/posts/

https://raddy.dev/wp-json/wp/v2/posts?search=photoshop

https://raddy.dev/wp-json/wp/v2/posts/5372

https://raddy.dev/wp-json/wp/v2/posts?_embed

_embeded gives you more data to work with.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published