Cares is a microblog application written in the Go language. It supports posting to a single microblog on your site.
Cares' name is inspired by another Go microblog application, nobodycares.
- Go 1
- a web server
Cares is a web application that runs on your server, so it's probably a little fiddly for most people.
Install Cares to your Go environment with
go get. (You might want to make a new environment manually or with gowork first.)
$ go get github.com/markpasc/cares
Set up a PostgreSQL database, and run Cares to initialize the database and make your user account:
$ createdb cares $ createuser cares $ psql -c 'grant all privileges on database cares to cares' cares $ cares --database 'dbname=cares user=cares' --init
Cares will ask for a login name and password for you to use when using the site, and set up the database. Then Cares is ready to run. You can check by invoking
cares manually and connecting directly on its port:
$ cares --database 'dbname=cares user=cares' --port 8080
Yay, now Cares is built and running. Open it in the browser to mess around.
Once installed and running, your site will appear on the web. To post, go to the home page and type
p. A new post will appear that you can type text into. Type
return to make the post. (The web site will ask for the username and password you entered when you installed Cares.) To cancel the post, press the
escape key instead (or leave the page).
Customize your site by editing the HTML templates (in the
html/ directory) and the static web files (in the
static/ directory) as appropriate.
- Use a tool like Supervisor to keep the server running. See
extras/supervisor.example.conffor an example Supervisor configuration.
- Run the Cares app as an “app server,” behind a web server like Nginx. See
extras/nginx.example.conffor an example Nginx site configuration.
- Have the web server serve over HTTPS instead of HTTP.