# dugoly-blog

> A fully implemented component for a blog without the need for a manual database connection

Latest version **1.0.6** (published 2021-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install dugoly-blog
pnpm add dugoly-blog
yarn add dugoly-blog
bun add dugoly-blog
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-07-11 |
| First published | 2021-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 10 |
| Unpacked size | 535.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | omershiran |
| Maintainers | omershiran |

## Links

- npm: https://www.npmjs.com/package/dugoly-blog
- Repository: https://github.com/omershiran/dugoly-blog
- Homepage: https://github.com/omershiran/dugoly-blog#readme
- Issues: https://github.com/omershiran/dugoly-blog/issues
- npm.io page: https://npm.io/package/dugoly-blog

## Dependencies (10)

- [draft-js](https://npm.io/package/draft-js.md) ^0.11.7
- [react-share](https://npm.io/package/react-share.md) ^4.4.0
- [react-spinners](https://npm.io/package/react-spinners.md) ^0.10.6
- [draftjs-to-html](https://npm.io/package/draftjs-to-html.md) ^0.9.1
- [dugoly-tracking](https://npm.io/package/dugoly-tracking.md) ^1.0.0
- [dugoly-uploader](https://npm.io/package/dugoly-uploader.md) ^1.0.0
- [html-to-draftjs](https://npm.io/package/html-to-draftjs.md) ^1.5.0
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.2.0
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) ^4.11.3
- [react-draft-wysiwyg](https://npm.io/package/react-draft-wysiwyg.md) ^1.14.6

## Recent versions

- 1.0.6 (latest) — 2021-07-11
- 1.0.5 — 2021-06-24
- 1.0.4 — 2021-05-28
- 1.0.3 — 2021-05-21
- 1.0.0 — 2021-04-23

## README

# dugoly-blog

> A fully implemented component for a blog without the need for a manual database connection.
for more information go to [dugoly, Developers tools](https://dugoly.com/Documentation/readme/dugoly-blog.html)


## Install

```bash
npm install --save dugoly-blog
```

## Usage

```jsx
import React, { Component } from 'react'

import Blog from 'dugoly-blog'
class Example extends Component {
  render() {
    return <Blog ownerUid="skjdfsjfds" BlogTitle="this is my blog!" />
  }
}
```

## props
* ownerUid - the uid (user id) from dugoly
This parameter is necessary to identify the owner of the blog (the user who has the right to write posts and edit posts)
Without this component the blog 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
* bCode - Optional parameter to distinguish between different blogs of the same user, enter a unique value as you wish.
* BlogTitle- The title of the blog, for display on the site, please note: this title is not saved in db and is not dependent on the blog, entering the same blog data on different sites with a different title, you will display the same blog and the same posts on each site, only by changing the title.
* dir- Optional, gets the blog writing direction, by default it is left to right (ltr), can be set from right to left (rtl).


## General instructions for using the component

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](https://dugoly.com/Documentation/readme/dugoly-login.html) component (click for more explanation)

## How do I get the uid?
Go to the dugoly website to the [get my uid](https://dugoly.com/managementInterface/geyMyUid.html) 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](https://dugoly.com/Documentation/readme/dugoly-Libraries.html)

## License

MIT © omershiran [motto - Application and website development](https://motto.co.il/)

---
_Source: https://npm.io/package/dugoly-blog · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
