https://github.com/guoyunhe/yara
Yet another Reddit alternative for self hosting
https://github.com/guoyunhe/yara
Last synced: 4 months ago
JSON representation
Yet another Reddit alternative for self hosting
- Host: GitHub
- URL: https://github.com/guoyunhe/yara
- Owner: guoyunhe
- Created: 2023-06-24T10:15:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-03T14:38:00.000Z (almost 2 years ago)
- Last Synced: 2025-01-10T17:39:35.021Z (5 months ago)
- Language: TypeScript
- Size: 269 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yara
Yara is a self-hosting Reddit alternative.
## Requirements
- GNU/Linux
- Nginx
- Node.js 16+
- MySQL/MariaDB/Postgres
- Python 3
- [Certbot](https://certbot.eff.org/)## Install
```bash
# configure environment variables
cp .env.example .env
vi .env# generate new APP_KEY
node ace generate:key# install dependencies
npm install# migrate database structure
node ace migration:run# build the server
node ace build --production# daemon process manager to keep your app always online
sudo npm i -g pm2
pm2 startup
pm2 start pm2.config.js
pm2 save
```TODO: Nginx and certbot
## Update
```bash
# update code
git pull# install dependencies
npm install# migrate database structure
node ace migration:run# build the server
node ace build --production# restart daemon process
pm2 restart all
```