/phoenix

A rewrite of Fur Affinity in Node.js.

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

Build Status

Phoenix is a rewrite of Fur Affinity in Node.js, in an attempt to improve security and maintainability. It sports a full redesign of code, user interface, and database.

Prerequisites

Configuration

To get started, create config.json from config.sample.json. Phoenix will read its configuration from here.

sample/ contains sample Nginx configuration. You can get started quickly with its Makefile:

$ cd sample
$ make
$ sudo make install NGINX_CONF_DIR=/path/to/nginx/conf/

Then import your new development CA from sample/ca.crt, start Nginx, add an /etc/hosts (or equivalent) entry for ::1 local.furaffinity.net, and visit https://local.furaffinity.net/!

After running the first migration with node models/migrate, the database can be filled using node models/add-test-data.

Running the server

  1. Run npm install to install package dependencies from npm
  2. Migrate the database with node models/migrate
  3. Run the development server with node develop