Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.82 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.82 KB

Link list template by deco.cx

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.

Getting started

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!

Best practices

The best practices for managing the project on the long run rely around respecting folder structure. This means:

  1. Add .tsx files on components folder only
  2. Add preact hooks on sdk folder.
  3. To make a component editable, create it on the components folder and add an export { default } on the sections folder
  4. To add JavaScript to the browser, create a component on the components folder and add an export { default } on the islands folder

Check performance best practices on deco.cx's docs.