0.2.2-test1234 • Published 2 years ago

blogg.be v0.2.2-test1234

Weekly downloads
21
License
-
Repository
-
Last release
2 years ago

Blogg.be

Deeply in pure development stage now. Works very bad, needs caching, etc, etc.

(Later it will be) Blogging platform on which its contents (blogs) are stored on user's cloud storage and markdown files.

It also works as a tool, allowing you to use it for your own websites. It outputs NextJS page, making it very easy to host a blog with a NextJS project.

Currenly, it only works with OpenDrive cloud storage provider. Unfortunatelly it's impossible to make app on top of iCloud in such a way. But looks like it possible to make it work with Dropbox, - maybe it will be supported later.

Usage

yarn add blogg.be

Then create a page in your NextJS project (supposedly you already have NextJS project):

touch pages/blog.tsx

Then use it for your pages/blog.tsx:

import Blog from 'blogg.be'

export default Blog('YOUR_OPENDRIVE_FOLDER_ID')

You also need to give this page all the urls under /blog, by placing this in your now.json config:

{
  "version": 2,
  "routes": [{ "src": "/blog(.*)", "dest": "/blog?url=$1" }]
}

That's all! You can now navigate to your http://localhost:3000 or deploy it with now, with your own domain etc., - you'll be able to navigate your markdown files in that folder you share, but it will look like a blog!

Contribution

While developing this library, you need to try it with your NextJS project without publishing it. First, run in the library folder:

yarn link

Then in your NextJS project run this:

yarn link blogg.be

So your import Blog from 'blogg.be' will be pointing to your local library.

Don't hesitate to fork the repository, andd changes, and make Pull Requests!

If you have more access... Huh

After you'll make changes to the library, you may upload it on npm.

  1. yarn build to build generate new dist files with js and typescript declarations.
  2. release (install this package globally by yarn add release) to generate changelog.
  3. npm publish to finally deploy updated sources to npm.
0.2.2-test1234

2 years ago

0.2.2-test1

2 years ago

0.2.2-test

2 years ago

0.2.2-test123

2 years ago

0.2.3

2 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.2

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago