Skip to content

Danjoe4/monerica

 
 

Repository files navigation

Monerica

A Directory For A Monero Circular Economy

Adding a site

The easy way

Click me and add the "New Site Request" Label. Wait for a contributor to add it by following steps 1-4 below.

The fast way

Adding a site is as easy as editing the DIRECTORY.yaml file. No code needed. Here are the steps:

  1. Assuming you're viewing this doc on github, press the period on your keyboard .
  2. This will open an editor in the browser, click on DIRECTORY.yaml to open it
  3. Add your site to this file, just follow the formatting of the other sites
  4. Click the "source control" button on the left-hand side, then click "create pull request"
  5. Wait for approval

Goals:

  1. Easy, streamlined contributions for users and devs
  2. Hightly performant page that works without JavaScript.
  3. No backend to make hosting and distribution easier

Technical Details

TODO:

  1. Add deployments for TOR and various decentralized web hosting services. We want something to fallback on in case the cloudflare site gets attacked. I'll have to configure dns failover or something to intelligently resolve the domain.
  2. add better styling
  3. Create CI/CD for all deployment endpoints

Developing

git clone

npm i

npm run dev

Remember to take a look at the build of the site before pushing a commit npm run build

npm run preview

Design Rationale

Why Svelte?

Because it's a resonably popular framework that works well as a Static Site Generator. It will also not limit future enhancements.

Why a giant yaml?

It's more human-readable than JSON while able to be easily parsed into a JS-friendly object. TOML doesn't support enough nesting and has less robust strings. Markdown has less flexibility and is harder to parse. XML is ugly. It's easy to refactor into multiple files. It makes it easy for non-technical users to contribute

About

A Directory For A Monero Circular Economy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 51.9%
  • Python 22.3%
  • JavaScript 15.8%
  • HTML 5.2%
  • CSS 4.8%