From 0149d4704d17b5517bcd62fe6786fb0332bbdba9 Mon Sep 17 00:00:00 2001 From: amrw Date: Wed, 9 Dec 2020 23:03:17 +0100 Subject: [PATCH] Add more more details to installation instructions --- README.md | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index ed2060d..a451851 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # teddit - [teddit.net](https://teddit.net) - A free and open source alternative Reddit front-end focused on privacy. Inspired by the [Nitter](https://github.com/zedeus/nitter) project. @@ -50,23 +48,41 @@ Community instances: ### Docker -Using [`docker-compose`](https://github.com/docker/compose): -```bash +Using [Docker and `docker-compose`](https://github.com/docker/compose): + +```console docker-compose build docker-compose up ``` +Teddit should now be running at . + ### Manual -1. Install [node.js](https://nodejs.org/en/) -1. It's highly recommended that you install [redis-server](https://redis.io/) because it works as a cache for Reddit API calls. If you want to support videos, install [ffmpeg](https://ffmpeg.org/)\ -For example:\ -`# apt install redis-server ffmpeg` -1. `$ git clone https://codeberg.org/teddit/teddit` -1. `$ cd teddit` -1. `$ npm install --no-optional` -1. Copy `config.js.template` to `config.js` and then edit it to suit your environment. -1. `$ npm start` +1. Install [Node.js](https://nodejs.org). +1. (Optional) Install [redis-server](https://redis.io). -Teddit should be now running. + Highly recommended – it works as a cache for Reddit API calls. +1. (Optional) If you want to support videos, install [ffmpeg](https://ffmpeg.org) + + ```console + # Linux + apt install redis-server ffmpeg + + # macOS + brew install redis + ``` + +1. Clone and set up the repository. + + ```console + git clone https://codeberg.org/teddit/teddit + cd teddit + npm install --no-optional + cp config.js.template config.js # edit the file to suit your environment + redis-server + npm start + ``` + +Teddit should now be running at .