All Templates / Starters

Angular 18 Static

Angular 18 Static

The web development framework for building the future

Deploy Angular 18 Static

Angular

railwayapp-templates/angular-starter

Just deployed

Angular + TypeScript + Caddy

This project was originally generated with ng new my-app

✨ Features

  • Angular 18 + TypeScript + Caddy
  • Caddy v2

💁‍♀️ Local Development

  • Install required dependencies with npm install
  • Run npm run dev for a dev server
  • Navigate to http://127.0.0.1:4200/. The application will automatically reload if you change any of the source files.

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

❓ Why use Caddy when deploying to Railway?

Caddy is a powerful, enterprise-ready, open source web server, and therefore Caddy is far better suited to serve websites than ng serve is, using Caddy will result in much less memory and cpu usage compared to serving with ng serve (much lower running costs too)

To see how this is achieved with nixpacks, check out the fully documented nixpacks.toml file in this repository

The configuration for Caddy is called a Caddyfile, and you can edit that file to further suite your needs, by default it comes configured to serve a single page app for Angular, and to also gzip the responses

Relevant Caddy documentation:


Deploy Now

Details

Created on Aug 17, 2023

339 total projects

139 active projects

100% success on recent deploys

HTML, TypeScript, CSS

Starters



More templates in this category

View Template

New

Django Monolith

Django Monolith

A Django app connected to a Postgres database with Celery and Celery Beat.


Prosper Otemuyiwa

View Template
TanStack + React Starter

TanStack + React Starter

A barebones TypeScript React starter with TanStack Router & Query setup


Kyle Gill

View Template
Scala Play

Scala Play

A simple Play framework app connected to a Postgres database.


Prosper Otemuyiwa