/analog-bun-ssr-example

An example repo using Analog and Angular + SSR w/Bun

Primary LanguageTypeScript

Analog + SSR + Bun Example

This project was generated with Analog, the fullstack meta-framework for Angular.

Setup

Run bun install to install the application dependencies.

Development

Run bun --bun vite for a dev server. Navigate to http://localhost:5173/. The application automatically reloads if you change any of the source files.

Build

Run bun --bun vite build to build the client/server project. The client build artifacts are located in the dist/analog/public directory. The server for the API build artifacts are located in the dist/analog/server directory.

Serve SSR Build

Run bun serve:ssr to serve the built SSR application with Bun. Run the command, and navigate to http://localhost:3000.

Test

Run bun --bun test to run unit tests with Bun using happy-dom.

Community