A fully featured link tree / link list type of app built with deco.cx — with native support for A/B testing, campaigns, and integrated CMS. Build yours for free at deco.cx.
To execute this website on your machine, clone it to your local machine with
git clone
and make sure deno is installed.
Then open the terminal, change the directory to where fashion was cloned and type
deno task start
You should see the following output
$ deno task start
Task start deno run -A --watch=static/,sections/,functions/ dev.ts
Watcher Process started.
Starting live middleware: siteId=538 site=std
The manifest has been generated for 6 routes, 5 islands, 17 sections and 16 functions.
Githooks setup successfully: pre-commit
Starting live middleware: siteId=239 site=fashion
Listening on http://localhost:8000/
Now, open http://localhost:8000/. You should see the links starter running on your machine!
The best practices for managing the project on the long run rely around respecting folder structure. This means:
- Add
.tsx
files oncomponents
folder only - Add preact hooks on
sdk
folder. - To make a component editable, create it on the
components
folder and add anexport { default }
on thesections
folder - To add JavaScript to the browser, create a component on the
components
folder and add anexport { default }
on the islands folder
Check performance best practices on deco.cx's docs.