dweb-blog

所属分类:建站系统
开发工具:JavaScript
文件大小:599KB
下载次数:0
上传日期:2023-01-22 17:40:48
上 传 者sh-1993
说明:  关于在位于Web和DWeb(SAFE网络)上的去中心化Web上构建的网站
(Website about building on the Decentralised Web that lives on the Web and the DWeb (SAFE Network))

文件列表:
.babelrc (50, 2023-01-23)
.eslintrc (29, 2023-01-23)
LICENSE (35149, 2023-01-23)
content (0, 2023-01-23)
content\about.md (1482, 2023-01-23)
content\collections (0, 2023-01-23)
content\collections\drafts (0, 2023-01-23)
content\collections\drafts\template.md (152, 2023-01-23)
content\collections\posts (0, 2023-01-23)
content\collections\posts\001-how-to-set-up-your-own-dweb-site.md (2556, 2023-01-23)
content\collections\posts\002-safegit-decentralised-git-on-safe-network.md (13069, 2023-01-23)
content\collections\posts\003-solid-filemanager-on-safe-network.md (3776, 2023-01-23)
content\collections\posts\004-why-solid-on-safe.md (12720, 2023-01-23)
content\collections\posts\005-i-tried-chatgpt-and-got-more-scared.md (6267, 2023-01-23)
content\home (0, 2023-01-23)
content\home\dweb-intro.md (1192, 2023-01-23)
content\home\join-the-dweb.md (1040, 2023-01-23)
content\home\more-about-dweb.md (52, 2023-01-23)
content\home\right-now-you-can.md (389, 2023-01-23)
package.json (960, 2023-01-23)
public (0, 2023-01-23)
public\images (0, 2023-01-23)
public\images\filemanager-editor.png (94008, 2023-01-23)
public\images\filemanager-enable-api.png (50433, 2023-01-23)
public\images\filemanager-intro.png (30267, 2023-01-23)
public\images\filemanager-open-directory.png (68186, 2023-01-23)
public\images\safedrive-logo-017778b748a2fa41a1a79855bc90dd6dda5f5051_2_1064x1000.jpeg (138141, 2023-01-23)
public\images\safegit-logo-8a31ccf66202d8209de7345c105da82070b22876_2_1380x580.png (13215, 2023-01-23)
public\images\safepresslogo.png (25286, 2023-01-23)
public\images\solidonsafelogo.png (15558, 2023-01-23)
public\robots.txt (14, 2023-01-23)
scripts (0, 2023-01-23)
scripts\deploy-lftp.sh (1405, 2023-01-23)
scripts\deployweb.sh (1698, 2023-01-23)
src (0, 2023-01-23)
src\App.js (573, 2023-01-23)
src\app.css (486, 2023-01-23)
... ...

# dWeb Blog - a Website for both Web and Decentralised Web dWeb Blog is a blazing fast website that you can deploy to both the Web and decenralised Web (dWeb) in a single command. The code is open source (GPL3), so everything here is free to use and build on. dWeb combines the advanced features from [ReactJs](http://reactjs.org/) for website design and development, with [React-static](https://github.com/nozzle/react-static)'s blazing fast, optimised website with just-in-time preloading. This website's purpose is to show you how to do everything it does, and to provide a live tutorial for website development by documenting its evolution from capable demo and starting point for a pro website, to fully fledged CMS. Along the way it will also show other things I'm working on, such as Safe Drive, decentralised Git, and of course Solid. With some help, this project can be developed into a full featured Wordpress style CMS, combining the interoperability and analytical capabilities of Solid with the security, privacy and freedom of Safe Network, and bridge the transition from the increasingly centralised web, to the a more robust user oriented decentralised web. ## Current Status dWeb already works so you can visit it live on web and Safe Network (see below) as well as use it as the basis for your own website. Posts and content are created in markdown, and automatically uploaded to the Web *and* to Safe Network with a single command. Code and content versioning and backup are easily maintained under git. My intention is to build on this base to work with local headless CMS or cloud CMS, and other data types such as RDFa (Linked Data). Workflow: 1. Create and edit markdown files under `./content` - Run `./scripts/deployweb.sh` - It's live! * Web: http://dweb.happybeing.com * dWeb: [safe://dweb](safe://dweb) (Requires Safe Browser, get it from [safenetwork.tech](https://safenetwork.tech)). If you build on dWeb Blog yourself, you can help build the future by submitting your enhancements in the form of pull requests via [github/dweb-blog](https://github.com/happybeing/dweb-blog) (owned by Microsoft) or `safe://dweb.dgit` via [Safe Drive/safegit](https://github.com/happybeing/safe-drive) (owned by us). The latter is still in alpha, so for the time being both will be kept in sync. dWeb is itself a fork of [rs-blog-demo](https://github.com/happybeing/rs-blog-demo) (shh, don't tell github), my playground for learning about React-static, and a live example of building blazing fast websites on web *and* dWeb (Safe Network). Some enhancements to dWeb will no doubt make it back into rs-blog-demo, which will remain a cleaner more basic starting point, but likely some way behind dWeb Blog. So for now best to fork dWeb Blog and start here. ## Quick Start ### Development React-static uses `yarn` so if you don't have it, install without `npm` from [yarnpkg.com](https://yarnpkg.com) or using `npm` with: ``` $ npm install -g yarn ``` Install React-static: ``` $ yarn global add react-static ``` Get dWeb and run the development server. ``` git clone https://github.com/happybeing/dweb-blog && \ cd dweb-blog && \ yarn && \ yarn start ``` Visit http://localhost:3000 and start adding content (see below), or editing the code if you want to modify the look and feel, styles, colours and so on. See the [React-static documention](https://github.com/nozzle/react-static#react-static) for how to customise the website code. ### Test a production build ``` yarn stage yarn serve # at http://localhost:3000 ``` ## Deploy Website Build for production (output in `./dist`): ``` yarn build ``` Upload the contents of `./dist` to your website's root HTML directory on the web or Safe Network. ### Automated Deployment to Web To automate build and upload by ftp, see the bash script `./script/deployweb.sh` ### Automated Deployment to Safe Network You can upload the contents of your website from `./dist` to Safe Network using a suitable application such as the Maidsafe Web Hosting Manager, or if you are using [Safe Drive](https://github.com/happybeing/safe-drive), on Linux you can upload the website on Safe Network as follows. - Start Safe Drive and connect to Safe Network so that your Safe Drive is mounted at `~/Safe` - Execute the following command, substituting the destination path of your website storage on Safe Network. Note the trailing '/' on both source and destination paths. ``` cp -ruv ./dist/ ~/Safe/_public/dweb/www-root/ ``` There's script to automate this (`scripts/deployweb.sh`) which you can customise to upload both to web and Safe in one command. ## Website Content Create content as markdown files under `/content`. Later content will be derived from other sources such as Solid Linked Data (Turtle files) via LDP on clearweb or Safe Network. ## Origin Fork of [rs-blog-demo](https://github.com/happybeing/rs-blog-demo). ## LICENSE - Website content is Copyright (C) Mark Hughes 2019. All Rights Reserved. - Everything else is GPL3.0 'Content' includes everything under `./content` and `./public`.

近期下载者

相关文件


收藏者