Quick Start Guide¶
Get up and running with Rust Terminal Forge in minutes.
Prerequisites¶
- Node.js 16+ (recommend using nvm)
- Rust toolchain (install via rustup)
- wasm-pack (
cargo install wasm-pack) - npm or Yarn
- Git
Local Development¶
1. Clone the Repository¶
git clone https://github.com/BA-CalderonMorales/rust-terminal-forge.git
cd rust-terminal-forge
2. Install Dependencies¶
npm install
wasm-pack build
3. Start the Development Server¶
npm run dev
Or using Yarn:
yarn dev
Open http://localhost:8080 in your browser.
4. Build for Production¶
wasm-pack build --release
npm run build
The production build will be in the dist/ directory.
5. Preview Production Build¶
npm run preview
Or using Yarn:
yarn preview
Project Scripts¶
dev: Start development serverbuild: Create production buildpreview: Preview production build locallytest: Run testslint: Run ESLintformat: Format code with Prettier
Deployment¶
The project is automatically deployed to GitHub Pages on every push to the main branch. Pull requests generate preview deployments for review.
Manual Deployment¶
-
Build the project:
bash wasm-pack build --release npm run build -
Deploy to GitHub Pages:
bash git add dist -f git commit -m "Deploy to GitHub Pages" git subtree push --prefix dist origin gh-pages
Next Steps¶
- Explore the Details for advanced configuration
- Learn about the terminal features
- Check out the keyboard shortcuts