Skip to content

corex-ui/soonex

Repository files navigation

Soonex

English-only Tableau static site: Corex components, theme/mode toggles, and the same contrast pipeline as the SaaS template.

Related: multi-locale variant at github.com/corex-ui/soonex_i18n. Corex docs on Hex: installation, API, Events, Tableau + Corex.

Prerequisites

  • Elixir ~> 1.15
  • Node.js (for npm install in assets/)

Quick start

cd soonex
mix deps.get
mix designex corex
cd assets && npm install && cd ..
mix tableau.server
  • Dev site: http://localhost:4999 (home at /).
  • Production output: MIX_ENV=prod mix build_site/.
  • Set SOONEX_PUBLIC_URL for your real origin; otherwise the demo default is https://corex-ui.github.io/soonex.

With MIX_ENV=dev, Corex MCP listens at http://localhost:4004/corex/mcp (Tableau stays on 4999). Configure your editor using .cursor/mcp.json as an example.

Rebuild assets: mix assets.build.

Customize (where to edit)

MDX-style Tableau extras (tags, include_dir, sitemap) are summarized in Tableau data, tags, and static extras in the longer notes below.

Rename this template

  1. Commit or branch (no undo).
  2. From the repo root: mix project.rename your_otp_app (snake_case). See lib/mix/tasks/project.rename.ex.
  3. Run mix format and mix compile.
  4. _posts/*.md: only the YAML layout: line is rewritten; post bodies stay as-is.

Corex assets and JS

Production and hosting

  • GitHub Actions: .github/workflows/pages.yml. In the repo, set Pages Source to GitHub Actions.
  • Clear _site/ when permalinks change (rm -rf _site) so stale paths are not published.
  • 404: lib/pages/not_found_page.ex emits _site/404.html for static hosts. mix tableau.server 404 behavior is still Tableau’s default.

Tableau data, tags, and static extras

  • @data: YAML (etc.) under _data/ merged into the page assigns (e.g. @data["facts"]["headline"]).
  • Tags: enabled in config/config.exs; index at /tags via lib/pages/tags_index_page.ex.
  • Static passthrough: static/ via include_dir on config :tableau, :config.
  • Sitemap: optional sitemap: on use Tableau.Page or in post front matter.

Drafts

Drafts and WIP live in _drafts and _wip (see config/dev.exs / config/prod.exs).

About

Static coming soon template build with Elixir, Phoenix, Corex and Tableau

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors