Wishlist — small pure JS page/application for making public wishlist.
- Easy handling of items — no databases, just JSON config
- Mobile support
- Multicurrency price
- Item description
- Multi-gift flag
- Items archivation
- Show archived items if needed
It's a static html-page with JS/CSS so all you need is some web-server, e.g. nginx or cloud solutions like Netlify or Github Pages.
Create new directory for project and open it:
mkdir wishlist
cd wishlist
Run install script:
bash -c "`curl -fsSL https://raw.github.com/mitrichius/WishlistJS/master/remote-install.sh`"
After it fill in data.js
file with your wished items.
Target your webserver to index.html
or just open it in browser.
image-default
— default image for itemscurrency_default
— default currency suffix to price valuedescription
- optional html code on top of the page (header)show_archived
(0/1) - show archived items (with opacity and text strikethrough)
All parameters except name
are optional.
name
description
price
(just number)currency
tags
(array)url
image
date
archived
(0 - not archived, 1 - archived)priority
- for additional sorting, ASC-ordermulti
- show that item can be gifted several timesproperties
- array of objects with "key" and "value" keys
"properties": [
{
"key": "Size",
"value": "M"
}
]
Just rsync your directory to the server and configure webserver to this path:
rsync -vrzl --delete ./ <server_name>:/var/www
Push your directory to new repository on Github (it could be private).
Go to Netlify and connect this repository. Config already included.
Run this command in your repo:
git submodule update --init --remote
If you find a bug or have an idea for a feature, feel free to write an issue or make a PR.
See issues.
Icons are provided by Icons8:
MIT
© Dmitry Kolosov 2020