A self hosted wishlist app with a secure admin page where you can manage the items on the wishlist.
1.9K
Simple Wishlist is a Node.js application that allows users to conveniently organize their desired items in one place.
It features a secure admin panel for adding and deleting items, while family and friends can mark items as 'Purchased' to prevent duplicate gifts.
š Please be kind, this is my first Node.Js app.
Docker Compose:
version: '3'
services:
wishlist:
image: ajb3932/simple-wishlist:latest
container_name: wishlist
hostname: wishlist
ports:
- 8092:8092
environment:
- DBHOST=mongodb:27017
- CURRENCY=USD
- LIST_NAME=My Wishlist
- LIST_TYPE=bday
depends_on:
- mongodb
mongodb:
image: mongo:latest
container_name: wishlist-db
hostname: mongodb
volumes:
- mongodb_data:/data/db
volumes:
mongodb_data:
Docker CLI:
ā ļø Must have a MongoDB to connect too.
docker run -d -p 8092:8092 -e DBHOST=10.0.0.10:27017 ajb3932/simple-wishlist
The following Environment Variables are available:
| Variable Name | Description | Options | Default Value |
|---|---|---|---|
CURRENCY | Change the site to display £,$ or ⬠| USD, GBP, EUR | USD |
LIST_NAME | Change the heading to display | Any String | My Wishlist |
LIST_TYPE | Change to Favicon and Logo | xmas, bday, wedding | bday |
DBHOST | Set the MongoDB Host | [IP_Address]:[PORT] | localhost:27017 |
DBNAME | Set the name of the database | any_string | simple-wishlist |
PORT | Change the port the application runs on | [PORT] | 8092 |
When the app first runs it will take you to /setup where you will be asked to set up an admin login user.
/
The public wishlist page is the root of the web app.
If you click purchased it will move the item to the 'Purchased' table
/admin
The admin panel for the app. Here you can add and delete items on the wishlist.
Available fields to add an item:
| Field | Description |
|---|---|
| Name | The name of the item and other information i.e size |
| Item URL | The URL to the item |
| Price | The price of the item |
| Image URL | A URL for a product photo |
/setup
Only used on the first run and will not be available once an admin user has been set up.
š³ Docker
git clone https://github.com/ajb3932/simple-wishlist.git
cd simple-wishlist
docker build -t my-wishlist .
docker run -d -p 8092:8092 -e DBHOST=10.0.0.10:27017 my-wishlist
š¾ Node.js
git clone https://github.com/ajb3932/simple-wishlist.git
cd simple-wishlist
npm install --production
node server.js
Content type
Image
Digest
sha256:45da4e847ā¦
Size
46.4 MB
Last updated
over 1 year ago
docker pull ajb3932/simple-wishlist