A fully implemented component for a blog without the need for a manual database connection. for more information go to dugoly, Developers tools
npm install --save dugoly-blog
import React, { Component } from 'react'
import Blog from 'dugoly-blog'
class Example extends Component {
render() {
return <Blog ownerUid="skjdfsjfds" BlogTitle="this is my blog!" />
}
}
Note: From version 1.0.5 there is another prop - "withRouter" that includes the object that contains the "RelativePath" component that specifies the location of the blog
(Note: Do not set this location on the router as "exact")
Example: withRouter = {{RelativePath: "/ blog"}}
The value entered in RelativePath is the relative position of the blog on the site (not the whole path!)
WithRouter means that the library comes with a router so that the posts do not appear on the same main page of the blog but on the page "/ post / postId" relative to the original page where the blog appears
The default withRouter is false
Using a main instance for a post, customized - requires that the specified address be positively used withRouter
In order to view the blog and its contents, there is no need for dugoly-login at all, but in order to edit and add blog posts, you need to login by dugoly Logging in with dugoly will enter the user's ID values in cookies, and if he is defined as the blog owner, he will be able to edit and add blog posts In order to log in and verify user information with dugoly you must install the dugoly-login component (click for more explanation)
Go to the dugoly website to the get my uid page at the link: https://dugoly.com/managementInterface/geyMyUid.html . Once you have logged in with the authentication details of the user who will be the blog owner, you will receive the uid there You can also get them at any site that logs in with dugoly in cookies Or, if you have a site and the above user logged in to your site with dugoly, you can see its details in the management interface
Instructions for implementing rss feed Click on this link
To view dugoly's list of libraries click here
MIT © omershiran motto - Application and website development