Giter VIP home page Giter VIP logo

urbit-static-page's Introduction

Notice: This is nowhere near current and should only be considered for the purpose of mounting static HTML pages in archival subnetworks (eg. galaxies, stars, and planets pinned to Vere version 0.10.0). As of November 2023, no such archival project exists, though one could certainly imagine it.

urbit-static-page

Basic template for mounting a static website (HTML+CSS+JS) to an Urbit ship v.0.10.0 or higher.

awesome urbit badge

Overview

As of Urbit v0.8.0, the eyre vane (HTTP server) of Arvo no longer automatically mounts everything in the /web folder. It now works through the declaration of endpoints.

This is a boilerplate for that, using a static Gall agent, current as of v.0.10.0+.

This boilerplate will mount everything in /app/staticsite to "/~staticsite" on your ship's HTTP server. If your ship is ~sampel-palnet and you have enabled DNS proxying, your site will be available on http://sampel-palnet.arvo.network/~staticsite.

You can also set any domain name to your ship's IP address, if you prefer.

Usage

  1. Clone this repo.
  2. If you want to rename the app or the endpoint, you can do either respectively by renaming staticsite.hoon and the staticsite folder, for the app; and all mentions of ~staticsite in the former staticsite.hoon for the endpoint. Feel free to add your HTML, CSS, and JS files to the folder when ready.
  3. Copy everything in urbit/app to your Urbit ship's pier, within its respective /app folder.
  4. |commit %home and |start %your-app-name.
  5. e m b r a c e g e o c i t i e s

Future updates

  • Mounting arbitrary pngs

Acknowledgements

This was one of my first projects on Urbit. Thank you to ~tacryt-socryp, ~palfun-folsup and ~novlud-padtyv for mentoring.

urbit-static-page's People

Contributors

afknapping avatar fang- avatar kennyrowe avatar matildepark avatar tacryt-socryp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

urbit-static-page's Issues

Not Compiling

I've tried a few times to get this app working but I'm getting this error. Any assistance would be appreciated.

> |start %staticsite
>=
activated app home/staticsite
/~zod/home/~2020.1.30..11.22.58..1f0b/sys/vane/ford:<[4.825 18].[4.825 59]>
/~zod/home/0/app/staticsite/hoon::[3 1].[84 3]>
/~zod/home/0/app/staticsite/hoon::[4 1].[84 3]>
/~zod/home/0/app/staticsite/hoon::[5 1].[84 3]>
/~zod/home/0/app/staticsite/hoon::[17 3].[64 5]>
/~zod/home/0/app/staticsite/hoon::[18 3].[64 5]>
/~zod/home/0/app/staticsite/hoon::[19 3].[64 5]>
/~zod/home/0/app/staticsite/hoon::[21 3].[64 5]>
/~zod/home/0/app/staticsite/hoon::[22 3].[64 5]>
/~zod/home/0/app/staticsite/hoon::[23 3].[64 5]>
/~zod/home/0/app/staticsite/hoon::[24 3].[64 5]>
/~zod/home/0/app/staticsite/hoon::[28 7].[43 9]>
/~zod/home/0/app/staticsite/hoon::[30 7].[43 9]>
/~zod/home/0/app/staticsite/hoon::[30 12].[30 24]>
-find.request-line
ford: %slim failed: 
ford: %ride failed to compute type:
ford: %plan failed: 
ford: %core on /~zod/home/0/app/staticsite/hoon failed:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.