Skip to content

UlordChain/blog_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

U-Knowledge中文

Use ulord platform to create a single blog.

Features

  • resource pricing
  • every source infomation publishes on the ulord
  • every transaction can be queryed on the ulord
  • upload to the ulord's IPFS,don't worry about storage
  • windows environment
  • linux environment
  • mutil database,like sqlite,mysql,postgresql,eg.
  • easy config

install

install python and pip

firstly you need to install python2.7.14 from the website

secondly install pip to manager your python packages

thirdly using pip to install packages

pip install -r requirements.txt

install go-ipfs

go-ipfs is a tool of ipfs.You can connect the ipfs using it.Change the config and you can connect the ulord's IPFS.

You can download IPFS form here and choose the right version for your environment.

And then you need set the environment variables including the ipfs.

Windows

You can use Tools/ipfs/install.bat to install ipfs.It will copy the ipfs.exe to your system environment.

warnning:It will copy the file to "C:\Windows\System32".So if your system environment is not there you should modify the bat file handly and execute it.

ipfs init
ipfs bootstrap rm --all
ipfs bootstrap add /ip4/114.67.37.2/tcp/20418/ipfs/QmctwnuHwE8QzH4yxuAPtM469BiCPK5WuT9KaTK3ArwUHu
ipfs config Datastore.StorageMax "1MB"
ipfs daemon

Linux

You can use Tools/ipfs/install.sh to install ipfs.It will copy the ipfs.exe to your system environment.

warnning:It will copy the file to "/usr/local/bin/".So if your system environment doesn't include there you should modify the bat file handly and execute it.

Then using the command to init your ipfs(Windows/Linux):

ipfs init
ipfs bootstrap rm --all
ipfs bootstrap add /ip4/114.67.37.2/tcp/20418/ipfs/QmctwnuHwE8QzH4yxuAPtM469BiCPK5WuT9KaTK3ArwUHu
ipfs config Datastore.StorageMax "1MB"
ipfs daemon

This is a daemon program.Don't exit!

Keep IPFS in the background service

Paste the following code to allow IPFS to automatically restart the service if it fails.

[Unit]
Description=IPFS
[Service]
ExecStart=/usr/local/bin/ipfs daemon
Restart=always
User=root
Group=root
[Install]
WantedBy=multi-user.target

Start the service:

systemctl start ipfs

run it

python server.py

About

Use ulord platform to create a simple blog.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published