Quick Start
Clone ngXpress and have it running locally in a few minutes.
This gets ngXpress running on your machine against a local PostgreSQL database.
Prerequisites
- Node.js 20+
- pnpm 11 (the repo pins its package manager; the lockfile is the source of truth)
- A database — PostgreSQL by default, database name
ngxpress
1. Get the code
Use this template on GitHub or clone it directly:
git clone https://github.com/angularcafe/ngXpress.git
cd ngXpress2. Install dependencies
pnpm install3. Configure the environment
cp .env.example .envGenerate a secret for Better Auth:
openssl rand -base64 32Paste it into BETTER_AUTH_SECRET. Keep BETTER_AUTH_TRUSTED_ORIGINS in sync with the URLs you actually use — http://localhost:4200 for pnpm dev, http://localhost:4000 for a local production build. See Environment Variables for the full reference.
4. Set up the database
Create an empty PostgreSQL database (default name ngxpress), then:
pnpm db:generate
pnpm db:deploydb:deploy applies the committed migrations (prisma migrate deploy). Use db:migrate instead when you're changing the schema locally — see Database & Prisma.
5. Run it
pnpm devOpen http://localhost:4200. Angular SSR and the Express API are both served from that one process.
Rebrand the demo product in src/app/core/config/app-brand.ts (APP_NAME, tagline, template URL) and the <title> in src/index.html.
Next steps
- Project Structure — where things live
- Authentication — how sign in/up and sessions work
- Production Deployment — going from
pnpm devto a real server