finds.dev← search

// the find

btford/angular-express-blog

★ 599 · JavaScript · updated Apr 2017

Example AngularJS app using an Express + Node.js backend.

A minimal example blog app pairing AngularJS 1.x with an Express/Node backend, built from btford's angular-express-seed. It's a teaching artifact showing basic CRUD (add/edit/delete/read posts) wired through Angular controllers and an Express REST API, not a production starting point.

The separation between routes/api.js (REST endpoints) and routes/index.js (page rendering) is a clean illustration of how Express can serve both a SPA shell and a JSON API from one process. The Angular side is organized the way the framework intended at the time — controllers, directives, filters, and services split into their own files rather than dumped in one app.js. As a from-scratch example (no CLI-generated boilerplate) it's genuinely readable in an afternoon.

AngularJS itself hit end-of-life in January 2022, and the vendored angular.js/angular-resource.js/angular-cookies.js files in public/js/lib are hard-copied into the repo rather than managed by a package manager, so there's no way to patch or upgrade them. No package-lock or shrinkwrap, no tests, and Jade (later renamed Pug) as the view engine is itself deprecated under that name. Last commit was 2017, so it predates ES6 modules, npm audit fixing, and basically all modern Node tooling — anyone pulling this today is learning patterns (two-way binding via $scope, callback-style Express routes) that the ecosystem has since moved away from.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →