Code samples used in my blog posts covering FaaS with Cloud Functions, BaaS with Firebase, GraphQL with Apollo & Server-side Rendered (SSR) React with Next.js.
ποΈ notes on examples Β· π§ code compatibility Β· π¨βπ©βπ§βπ¦ contributions Β· π» developer tools used Β· π¨βπ» find me
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.