Skip to content

Instantly share code, notes, and snippets.

@RossJHagan
RossJHagan / README.md
Created September 13, 2015 17:34
Webpack Baseline - ES6, React, Lodash

Put index.html into public/ Put app.es6 into src/ Put greeting.es6 into src/greeting

Run:

npm install npm start - runs the webpack server.

@tjamps
tjamps / README.md
Last active February 29, 2024 14:57
Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

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 password Grant Type only (no need for Authorization pages and such).
  • API versioning is managed via a subdomain (e.g. v1.api.example.com)

The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :