dugoly-news

A fully implemented component for a news-line without the need for a manual database connection.

Install

npm install --save dugoly-news

Usage

import React from 'react'

import News from 'dugoly-news'

const App = () => {
  return <News 
  ownerId="-MO0rfu7iS6SO7iFQS2x"
  nCode="my-code" 
  dir="right"
  style={{backgroundColor:"red"}}
  />
}

export default App

props

  • ownerId - the uid (user id) from dugoly This parameter is necessary to identify the owner of the component (the user who has the right to write and edit news) Without this, the component cannot be identified, edited or read! In order to get the desired value to ownerUid you must find the user's uid in dugoly. How to do it? - See explanation below
  • nCode - Optional parameter to distinguish between different news of the same user, enter a unique value as you wish.
  • dir- Optional, Gets the direction of movement (right or left).
  • style - Gets the style of the component

General instructions for using the component

In order to view the news and its contents, there is no need for dugoly-login at all, but in order to edit and add news , 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)

How do I get the uid?

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

Additional libraries

To view dugoly's list of libraries click here

License

MIT © omershiran motto - Application and website development