Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brandonroberts/analog-bun-ssr-example

An example repo using Analog and Angular + SSR w/Bun
https://github.com/brandonroberts/analog-bun-ssr-example

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Analog + SSR + Bun Example

This project was generated with [Analog](https://analogjs.org), 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](https://bun.sh) using [happy-dom](https://github.com/capricorn86/happy-dom).

## Community

- Visit and Star the [GitHub Repo](https://github.com/analogjs/analog)
- Join the [Discord](https://chat.analogjs.org)
- Follow us on [Twitter](https://twitter.com/analogjs)
- Become a [Sponsor](https://github.com/sponsors/brandonroberts)