A Palace of Palettes with Appwrite
Ste Griffiths - May 12 '22 - - Dev Community
Overview of My Submission
My submission for the Appwrite Hackathon is Palace, a palette organising playground for people dealing with colour at palatial scale 😎🤪
This is borne out of my need for a tool to let me import, tweak, and export lots of palettes. And I thought it would be a great opportunity to try out the auth and database features of Appwrite for this hackathon!
The Appwrite features it uses are:
- Anonymous sessions
- Accounts
- Database
I can tell I've only scratched the surface, as there's a lot of backend support in Appwrite too, which was just outside the scope of this project.
But it was great to be able to add server-backed save features for relatively little effort.
Submission Category:
Web2 Wizards
Link to Code
palace
Palette Ace - Build, curate, and export colour palettes
Resources
Dev
- Install dependencies with
npm i
- Run with
npm run start
Prod
- Build for prod with
npm run build
- Deploy to e.g. Netlify with the output from
build
directory
Additional Resources / Info
I wrote about the creation process in a previous post, but the tall and short of it is:
Challenges
I wanted Palace to have import/export to JSON and CSS, but didn't have time inside the hackathon. Those will come later 😊
AI had to use a spare domain to get the backend talking to the frontend over HTTPS; that was an unexpected challenge but it worked eventually.
Palace has one really big bug which is that data isn't isolated per user... everyone can edit everyone's data 😅... I set everything up as I thought I should in appwrite, and manually set permissions with user:$userId
but still, the data leaks. Maybe somebody will comment and tell me what I did wrong!
Thanks for reading my entry -- happy hacking 😊