Skip to content

Instantly share code, notes, and snippets.

@thiagosouza
Last active February 28, 2019 03:04
Show Gist options
  • Save thiagosouza/612b8bf860435b20fd4d337922b6a6f2 to your computer and use it in GitHub Desktop.
Save thiagosouza/612b8bf860435b20fd4d337922b6a6f2 to your computer and use it in GitHub Desktop.
Firebase setup
mkdir mvp-blockchain-serverless && cd $_ #creates a folder for your porject and enter it
touch .nvmrc && echo "8" >! .nvmrc && cd . #install nvm and put a nvmrc file on the directory
npm init #initialize npm package
npm install firebase-functions@latest firebase-admin@latest --save #install firebase tools locally
npm install -g firebase-tools #install firebase tools globally
firebase login #authenticates your computer to manage the firebase project
firebase init functions #initialize a new firebase function
#language = javascript
#ESLint = y
#install packages = y
firebase list #list all of your Firebase projects
firebase use --add mvp-blockchain-serverless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment