Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Latest commit

 

History

History
63 lines (42 loc) · 1.24 KB

README.md

File metadata and controls

63 lines (42 loc) · 1.24 KB

ramda.guide

built with nix

https://ramda.guide

Status

In development

Setup

With Docker

With docker compose (recommended)

docker compose build
docker compose up

Without docker compose

docker build . -t ramda-guide
docker volume create ramda-guide-vol
docker run --rm -it -v $PWD:/service ramda-guide:latest

Without Docker

  1. Install nix
  2. Install nix flakes

Commands

If you are using Docker, prefix the following with docker compose run --rm app; for example:

docker compose run --rm app nix run .#watch
  • nix build: build the package
  • nix run or nix run .#app: run the package
  • nix run .#watch: watch the package for changes and rerun
  • nix develop: enter a reproducible rust shell environment
    • How to watch for changes and rerun:
      cargo watch -w "./src/" -i "./src/book/book.toml" -x "run"

Dev HTTP Server

To view the output, run the following in a separate window/pane:

cd web && python -m SimpleHTTPServer 8000

Updating the cachix cache

https://docs.cachix.org/pushing