http-nu

(β˜… 154)

The surprisingly performant, Nushell-scriptable, cross.stream-powered, Datastar-ready HTTP server that fits in your back pocket. πŸ˜πŸ’«πŸš€πŸ’œ

  • .gitignore
  • build.rs
  • Cargo.lock
  • Cargo.toml
  • CLAUDE.md
  • dagger.json
  • LICENSE
  • NIXOS_PACKAGING_GUIDE.md
  • README.md

# μ„€μΉ˜ κ°€μ΄λ“œ

1. μ½”λ“œ λ‚΄λ €λ°›κΈ°
git clone https://github.com/cablehead/http-nu

κΉƒν—ˆλΈŒμ—μ„œ ν”„λ‘œμ νŠΈ μ½”λ“œ 전체λ₯Ό λ‚΄ μ»΄ν“¨ν„°λ‘œ λ‚΄λ €λ°›μŠ΅λ‹ˆλ‹€.

cd http-nu

방금 내렀받은 ν”„λ‘œμ νŠΈ 폴더 μ•ˆμœΌλ‘œ μ΄λ™ν•©λ‹ˆλ‹€.

2. 곡식 μ„€μΉ˜ 슀크립트

쉬움 μΆ”μ²œ
사전 μ€€λΉ„λ¬Ό
  • Homebrew macOS/Linux용 νŒ¨ν‚€μ§€ λ§€λ‹ˆμ €μž…λ‹ˆλ‹€.
  • Rust (rustup) cargo λͺ…λ Ήμ–΄λ₯Ό μ“°λ €λ©΄ Rustκ°€ ν•„μš”ν•©λ‹ˆλ‹€.
brew install cablehead/tap/http-nu

Homebrew둜 이미 λΉŒλ“œλœ νŒ¨ν‚€μ§€λ₯Ό λ°”λ‘œ μ„€μΉ˜ν•©λ‹ˆλ‹€. μ†ŒμŠ€ λΉŒλ“œκ°€ ν•„μš” μ—†μŠ΅λ‹ˆλ‹€.

cargo install http-nu --locked

crates.io에 배포된 νŒ¨ν‚€μ§€λ₯Ό λΉŒλ“œν•΄μ„œ μ„€μΉ˜ν•©λ‹ˆλ‹€. 레포λ₯Ό 직접 클둠할 ν•„μš”κ°€ μ—†μŠ΅λ‹ˆλ‹€.

βœ… μ„€μΉ˜ ν›„ μƒˆ 터미널을 μ—΄κ³ , ν”„λ‘œκ·Έλž¨μ˜ 버전 확인 λͺ…λ Ή(예: --version)으둜 정상 μ„€μΉ˜λλŠ”μ§€ ν™•μΈν•˜μ„Έμš”.

이 레포의 README에 적힌 μ‹€μ œ λͺ…λ Ήμ–΄λ₯Ό κ·ΈλŒ€λ‘œ κ°€μ Έμ™”μŠ΅λ‹ˆλ‹€.

3. Go

보톡
사전 μ€€λΉ„λ¬Ό
  • Git GitHubμ—μ„œ ν”„λ‘œμ νŠΈ μ½”λ“œλ₯Ό λ‚΄λ €λ°›μœΌλ €λ©΄ ν•„μš”ν•©λ‹ˆλ‹€.
  • Go Go μ–Έμ–΄ 컴파일러 및 도ꡬ λͺ¨μŒμž…λ‹ˆλ‹€.
cd .dagger

이 ν”„λ‘œμ νŠΈμ˜ κ΄€λ ¨ 파일이 ν•˜μœ„ 폴더 μ•ˆμ— μžˆμ–΄μ„œ, λ¨Όμ € κ·Έ ν΄λ”λ‘œ μ΄λ™ν•©λ‹ˆλ‹€.

go build ./...

Go ν”„λ‘œκ·Έλž¨μ„ μ»΄νŒŒμΌν•΄ μ‹€ν–‰ νŒŒμΌμ„ λ§Œλ“­λ‹ˆλ‹€.

go run .

λ”°λ‘œ λΉŒλ“œν•˜μ§€ μ•Šκ³  λ°”λ‘œ Go ν”„λ‘œκ·Έλž¨μ„ μ‹€ν–‰ν•©λ‹ˆλ‹€.

βœ… λΉŒλ“œκ°€ μ—λŸ¬ 없이 λλ‚˜λ©΄ μ„±κ³΅μž…λ‹ˆλ‹€. go run . 을 썼닀면 터미널 좜λ ₯을 ν™•μΈν•˜μ„Έμš”.

4. Rust

보톡
사전 μ€€λΉ„λ¬Ό
  • Git GitHubμ—μ„œ ν”„λ‘œμ νŠΈ μ½”λ“œλ₯Ό λ‚΄λ €λ°›μœΌλ €λ©΄ ν•„μš”ν•©λ‹ˆλ‹€.
  • Rust (rustup) rustup으둜 μ„€μΉ˜ν•˜λ©΄ cargo도 ν•¨κ»˜ μ„€μΉ˜λ©λ‹ˆλ‹€.
cargo binstall http-nu

이 λͺ…λ Ήμ–΄λ₯Ό 터미널에 κ·ΈλŒ€λ‘œ μž…λ ₯ν•΄ μ‹€ν–‰ν•˜μ„Έμš”.

cargo install http-nu --locked

crates.io에 배포된 νŒ¨ν‚€μ§€λ₯Ό λΉŒλ“œν•΄μ„œ μ„€μΉ˜ν•©λ‹ˆλ‹€. 레포λ₯Ό 직접 클둠할 ν•„μš”κ°€ μ—†μŠ΅λ‹ˆλ‹€.

βœ… cargo buildκ°€ μ—λŸ¬ 없이 λλ‚˜λ©΄ μ„±κ³΅μž…λ‹ˆλ‹€. target/ 폴더에 μ‹€ν–‰ 파일이 μƒμ„±λ©λ‹ˆλ‹€.

이 레포의 README에 적힌 μ‹€μ œ λͺ…λ Ήμ–΄λ₯Ό κ·ΈλŒ€λ‘œ κ°€μ Έμ™”μŠ΅λ‹ˆλ‹€.

// repository documentation