This is an application that imagines writing notes on sticky notes on refrigerator doors.
In Japan, many people leave notes on their fridges about what they need for shopping or school, and stick them on the fridge.
You can consult with family members or friends via chat, assign a person to be in charge, and record the information as a sticky note. You can also filter who is in charge to make it easier to see your tasks. The people who can be assigned are either yourself or people who are online.
- Applications are delivered using Cloudflare Workers.
- Message and sticky note updates are implemented using Durable Objects.
- Workers KV is used to manage login sessions.
- May be largely replaced when D1 is released🤔
- First, create a new private board.
- Choose your own username and log in.
- Copy the QR code or URL from the share icon and send it to the people you want to share it with.
- Communicate with family and friends via messages!
- Check out what you want to leave on the sticky note from your message. At that time, choose the person you would like to ask.
- When a task is completed, the sticky note can be marked as done.
- You can also export your assigned stickies as images.
- Make a note of the board URL so you don't forget it.
This turborepo uses Yarn as a package manager. It includes the following packages/apps/services:
apps/remix-app
: Remix appservices/worker
: Workerpackages/board-do
: DO that implements a websocket interface to place and manage messages and sticky notespackages/sticky-do
: DO to manage sticky notespackages/user-state-do
: DO to manage users online statepackages/rate-limiter-do
: DO to manage rate limiterpackages/counter-do
: DO to manage counter statepackages/cloudflare-config
: worker configurationspackages/tsconfig
:tsconfig.json
s used throughout the monorepopackages/eslint-config-custom
:eslint
configurations
This repository uses turborepo, and selected when choosing which package manager you wish to use with your monorepo (yarn).
yarn install
Workers KV must be created before deployment.
Then, it is necessary to add KV-id to wrangler.toml
.
wrangler kv:namespace create "SESSION_KV"
To build all apps and packages, run the following command:
cd on-the-fridge
yarn build
To develop all apps and packages, run the following command:
cd on-the-fridge
yarn dev
Secret must be created before deployment.
wrangler secret put SESSION_SECRET
To deploy all apps and packages, run the following command:
yarn deploy