zed/server
2021-09-30 10:01:48 +02:00
..
k8s Add SYS_ADMIN capability to the server container 2021-09-29 14:53:20 -07:00
migrations Add "interest" booleans to signups form 2021-09-20 16:06:16 -04:00
src Merge branch 'main' into project-browser 2021-09-30 10:01:48 +02:00
static Clean up styling of pre and code blocks inside prose 2021-09-23 16:55:08 -04:00
templates Revert "Update link hrefs to absolute urls" 2021-09-29 12:12:35 -04:00
.env.template.toml Include contents of the zed-server repo 2021-07-12 14:14:39 -06:00
basic.conf Include contents of the zed-server repo 2021-07-12 14:14:39 -06:00
Cargo.toml Re-send pending messages after reconnecting 2021-09-16 16:23:43 +02:00
favicon.ico favicon + og tags update 2021-09-23 16:45:10 -04:00
Procfile Include contents of the zed-server repo 2021-07-12 14:14:39 -06:00
README.md Include contents of the zed-server repo 2021-07-12 14:14:39 -06:00
styles.css Update some styles to improve rendering on mobile 2021-09-24 17:37:00 -04:00

Zed Server

This crate is what we run at https://zed.dev.

It contains our web presence as well as the backend logic for collaboration, to which we connect from the Zed client via a websocket.

Templates

We use handlebars templates that are interpreted at runtime. When running in debug mode, you can change templates and see the latest content without restarting the server. This is enabled by the rust-embed crate, which we use to access the contents of the /templates folder at runtime. In debug mode it reads contents from the file system, but in release the templates will be embedded in the server binary.

Static assets

We also use rust-embed to access the contents of the /static folder via the /static/* route. The app will pick up changes to the contents of this folder when running in debug mode.

CSS

This site uses Tailwind CSS, which means our stylesheets don't need to change very frequently. We check static/styles.css into the repository, but it's actually compiled from /styles.css via script/build-css. This script runs the Tailwind compilation flow to regenerate static/styles.css via PostCSS.