An annotated guide to my laptop stickers.
This is a very, very rough first pass.
Install Node.js (if you don't already have it installed).
Check if you have node installed correctly with
node -v
npm -v
Clone the project with and navigate into it with
git clone https://github.com/leoriviera/stickers.git
cd stickers
Setup project and install required packages with
npm install
Finally, build the static site and start run the app with
npm run build
npm run start
Navigate to http://localhost:3000/ to see an example image annotation or to http://localhost:3000/generate to create your own.
- Improve the editor
- Compress the images on upload
- Possibly encode in Base85 to reduce the size of the images
- Accept HEICs and convert them to JPEGs
- Add a way to "swap out" images, so that the annotations can be preserved when the image is updated
- Improve the colours when creating annotations
- Allow moving/removing/editing of points in annotations
- Better branding (add a favicon, some OpenGraph images, etc.)s
Render line breaks in the annotationsdone
First fork the repo and clone it, then check out the main branch and get all upstream changes
git checkout main
git pull
Open a new branch locally
git switch -c "your-branch-name"
During development for hot-reloading run the project with
npm run dev
Before raising a PR check your code with
npm run lint
Stage, commit, and push your changes as usual. No fancy ways of working here.
git add .
git commit -m "Use a descriptive commit name though"
git push
Raise a PR with a nice description of what you changed.