Inhji @inhji

daydreamer. tinkerer. depressionist. overthinker. rebel without a voice. bruhgrammer. catlover. slightly human.

Inhji bookmarked

Decentralizing Social Interactions with ActivityPub - Mozilla Hacks - the Web developer blog

“The purpose of the software is to serve as the simplest possible starting point for developers who want to build their own ActivityPub applications. I picked what seemed to me like the smallest useful subset of ActivityPub features: the ability to publish an ActivityPub-compliant feed of posts that any ActivityPub user can subscribe to. Specifically, this is useful for non-interactive bots that publish feeds of information.”

Inhji bookmarked

It’s Time to Get Personal ◆ 24 ways

“Is it just me or does nobody have their own website anymore? OK, some people do. But a lot of these sites are outdated, or just a list of links to profiles on big tech platforms. Despite being people who build websites, who love to share on the web, we don’t share much on our own sites.”

Inhji posted

How to setup microblog.pub for development on ubuntu 18.04

First clone the repo:

git clone https://github.com/tsileo/microblog.pub

You need a couple of dependencies, so install those:

# install pyenv and python3.7.5
curl https://pyenv.run | bash
exec $SHELL # reloads the shell
pyenv install 3.7.5

# docker
# follow the instructions at https://docs.docker.com/install/linux/docker-ce/ubuntu/
# then add your user to the docker group
sudo groupadd docker
sudo systemctl restart docker

# docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

In the microblog.pub directory, create and activate the virtual env:

pyenv virtualenv 3.7.5 microblog.pub
pyenv local microblog.pub

Now install the dependencies:

pip3 install wheel
pip3 install -r requirements.txt

create the initial config file me.yml

sudo make config

download static files (css, emojis)

make css

Now you can run create the container and run the flask server:

sudo env POUSSETACHES_AUTH_KEY="<secret-key>" docker-compose -f docker-compose-dev.yml up -d
FLASK_DEBUG=1 MICROBLOGPUB_DEBUG=1 FLASK_APP=app.py POUSSETACHES_AUTH_KEY="<secret-key>" flask run -p 5005 --with-threads