Code samples used in my blog posts covering FaaS with Cloud Functions, BaaS with Firebase and Server-side Rendered (SSR) React with Next.js.
- π» tech covered in the blog
- π posts & code π»
- ποΈ notes on examples
- π§ code compatibility
- π¨βπ©βπ§βπ¦ contributions
- π» developer tools used
- π¨βπ» find me ...
- Firebase - "Serverless" Backend as a Service for web and mobile.
- Cloud Functions for Firebase - Google's ephemeral compute offering wrapped with Firebase for clear & simple deployment & management.
- Next.js - Server-Side Rendered React framework with bundle splitting and offline caching.
- GraphQL - A query language for you API.
- Apollo Server & Client - GraphQL ExpressJS Server and GraphQL Client with query caching for any UI.
Other Blog posts |
---|
GitHub & Medium withΒ Embedly |
These examples use Yarn for all npm scripts, so either install Yarn or replace all uses of yarn
in the scripts with npm run
.
Firebase CLI is recommended to be used with the Node.js 8.9.x LTS, however the Cloud Function runtime is still using Node.js 6.11.5. As such, this repo enforces Node.js 8.9.4 (in the .tool-versions file used by asdf) and it's recommended to compile your code to 6.11.5 (or not use any Node features from > Node.js v7.
I use CodeSandbox not as a development playground, but as a means to keep my code snippets in Medium in sync with this repo. Do not expect these examples to execute in CodeSandbox.
Everything was tested on Ubuntu 17.10. If you wish for Windows native support please submit an issue so we can work on a Windows branch. Please report any macOS errors as I do not have access to a device to test. My development environment can be found here.
Contributions are welcome!
Please note: I do intend to write a blog post about each of the examples here. I have a lot of examples in various stages of progress that I will release when I have the blog post written. If you wish to contribute to examples prior to a post being written I will of course credit all contributions to each particular example π
If you have a request please open an issue so we can discuss how & why it should be implemented.
- asdf - extendable version manager with support for Node, Ruby, Go, Python and more!
- Yarn - NodeJS package manager
- PrettierJS - Opinionated Code Formatter.