Angular: Just say no
A collection of articles by AngularJS veterans, sometimes even core committers, that explain in detail what's wrong with Angular 1.x, how Angular 2 isn't the future, and why you should avoid the entire thing at all costs unless you want to spend the next few years in hell.
Reason for this: I'm getting tired of having to explain to everyone, chief of which all the indiscriminate Google Kool-Aid™ drinkers, why I have never believed in Angular, why I think it'll publicly fail pretty soon now (a couple years), and why it's a dead end IMO. This gist serves as a quick target I can point people to in order not to have to parrot / compile the core of the articles below everytime. Their compounded reading pretty much captures 99% of my view on the topic.
Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle
The API we are creating in this gist will follow these rules :
- The API only returns JSON responses
- All API routes require authentication
- Authentication is handled via OAuth2 with
passwordGrant Type only (no need for Authorization pages and such).
- API versioning is managed via a subdomain (e.g.
The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :
Testing Angular.js app headlessly with node.js + mocha
Lean unit tests with minimal setup
- Fake DOM (Everything works without a real browser)
- Uses ngMocks to inject and mock Angular.js dependencies
- I'm assuming you are already using browserify (but everything works fine without it)
|# Install ARCH Linux with encrypted file-system and UEFI|
|# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.|
|# Download the archiso image from https://www.archlinux.org/|
|# Copy to a usb-drive|
|dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux|
|# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.|
|# Set swiss-french keymap|
Migrations & Seeding
What are migrations??
Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using
knex command line tool.
To learn more about migrations, check out this article on the different types of database migrations!