Fork of Wingysam's Christmas-Community at https://github.com/Wingysam/Christmas-Community/tree/master
Find a file
2021-12-06 13:17:29 -05:00
.vscode Admin Panel Revamp 2020-10-29 23:50:36 -04:00
config localization support 2021-12-03 11:13:43 -05:00
languages cs-cz 2021-12-05 09:23:11 -05:00
middlewares localization support 2021-12-03 11:13:43 -05:00
routes localization support 2021-12-03 11:13:43 -05:00
screenshots Screenshots 2019-11-10 16:29:00 -05:00
static Profile Pictures! 2021-09-15 02:41:44 -04:00
views forgot to use translations for pledge button 2021-12-06 13:17:29 -05:00
.dockerignore Remove screenshots from Docker image 2019-11-10 16:29:37 -05:00
.eslintignore add eslint, fix bugs found 2020-11-08 16:54:08 -05:00
.eslintrc.js revert eslint import order rule 2020-12-01 18:27:43 -05:00
.gitignore fix gitignore 2020-11-03 20:25:16 -05:00
docker-compose.debug.yml Dockerize 2018-12-01 10:44:26 -05:00
docker-compose.yml Dockerize 2018-12-01 10:44:26 -05:00
Dockerfile curl in docker container [hack to fix best buy] 2020-11-30 21:03:03 -05:00
Dockerstart.sh Put Docker image on Alpine 2020-11-13 10:44:50 -05:00
index.js localization support 2021-12-03 11:13:43 -05:00
LICENSE AGPL 2020-10-30 11:53:11 -04:00
logger.js add eslint, fix bugs found 2020-11-08 16:54:08 -05:00
manager.js add eslint, fix bugs found 2020-11-08 16:54:08 -05:00
package.json 1.28.0 2021-12-05 09:23:15 -05:00
patched-express-response.js add eslint, fix bugs found 2020-11-08 16:54:08 -05:00
README.md localization support 2021-12-03 11:13:43 -05:00
yarn.lock update yarn.lock 2021-12-03 11:13:34 -05:00

Christmas Community

Docker Pulls Version Language Runtime

Web app for your family's Christmas shopping

Purpose

To create a simple place for your entire family to use to find gifts that people want, and to avoid double-gifting.

Screenshots

Screenshot Screenshot Screenshot Screenshot

Amazon Smile

By default, Christmas Community converts www.amazon.com links to smile.amazon.com. If you do not want this, set the environment variable SMILE to false (if you are using Docker Compose, make sure to put "false" in quotes).

Root Path

If you want put Christmas Community on a subdirectory, such as /christmas-community, set ROOT_PATH to that path.

Docker

docker run --detach --name christmas-community -p 80:80 --restart always wingysam/christmas-community

Docker Compose

---
version: "3"
services:
  christmas-community:
    image: wingysam/christmas-community
    volumes:
      - ./data:/data
    ports:
      # If you want to go to localhost:8080 to access Christmas Community,
      # use - 8080:80 instead of
      - 80:80
    environment:
      # Amazon Smile, set to 'false' to disable www.amazon.com links
      # turning into smile.amazon.com
      SMILE: 'true'
      # Table mode, set to 'false' to revert to box mode
      TABLE: 'true'
      # Single list mode
      # (for weddings, birthdays, etc. only the admin account's list is accessible)
      # Set to 'true' to enable
      SINGLE_LIST: 'false'
    restart: always

Install

git clone https://github.com/wingysam/Christmas-Community
cd Christmas-Community
yarn

Configuration

Add environment variables with a .env. Example:

## Core Settings
# Where to store databases, can be a CouchDB compatible server or directory.
DB_PREFIX=dbs/
# Where to send someone if they need to log in
DEFAULT_FAILURE_REDIRECT=/login
# Port to listen on
PORT=80
# Expose the internal PouchDB with CouchDB API and Fauxton browser. Mostly used for debugging. Leave empty to disable.
DB_EXPOSE_PORT=
# Proxy to send item data requests to. Leave empty to disable.
PROXY_SERVER=
# Secret string to store session cookies with. Automatically generated if not provided.
SECRET=
# How long a user is logged in (milliseconds). Defaults to one week.
SESSION_MAX_AGE=604800000
# The name of the site in the <title> and navigation bar
SITE_TITLE=Christmas Community
# Used when shared to home screen
SHORT_TITLE=Christmas
# The root path for forms, CSS, and a small amount of JS. Useful when proxying.
ROOT_PATH=/
# Where to trust the X-Forwarded-For header from. Defaults to "loopback". Useful for proxying to docker.
TRUST_PROXY=loopback
# Any theme from https://jenil.github.io/bulmaswatch
BULMASWATCH=default
# Set to false to disable update notices
UPDATE_CHECK=true
# Set to false to disable the profile pictures feature
PFP=true
# Language of the interface, options listed in `languages` directory
LANGUAGE=en-US

## Wishlist Settings
# Set to true to not allow users to have their own lists. You may want this for a birthday or wedding.
SINGLE_LIST=false
# Set to false to allow viewing wishlists without logging in
LISTS_PUBLIC=false
# Defaults to true. Set to false for legacy cards view.
TABLE=true
# Convert Amazon links to Amazon Smile links. A percentage of the profit goes to a charity of buyer's choice. Defaults to true.
SMILE=true
# Allow Markdown in item notes. Does not work with TABLE=false. Defaults to false.
MARKDOWN=false

Default Profile Pictures

To replace the default snowman profile pictures, replace the files in static/img/default-pfps. In docker, mount /usr/src/app/static/img/default-pfps.

Startup

npm start

Setup

Visit / on the HTTP server to add an admin account.

About Developer

Hi, I'm Wingy. I made this app. My website is wingysam.xyz. Please hire me.

ko-fi

Contributors

As of writing, there are no code contributors. However, there are issue contributors and I appreciate these! Ideas on which features to add and bug reports are very helpful. Thank you!