Access Tokens Password Grant 12.2
POST /oauth/token HTTP/1.1
Host: authorization-server.com
mkdir mvp-blockchain-serverless | |
#install nvm and put a nvmrc file on the directory | |
touch .nvmrc && echo "8" >! .nvmrc && cd . | |
#initialize npm package | |
npm init | |
npm install firebase-functions@latest firebase-admin@latest --save | |
npm install -g firebase-tools |
pragma solidity ^0.5.0; | |
/** | |
* @title ERC20 interface | |
* @dev see https://github.com/ethereum/EIPs/issues/20 | |
*/ | |
interface IERC20 { | |
function transfer(address to, uint256 value) external returns (bool); | |
function approve(address spender, uint256 value) external returns (bool); |
#node 8 | |
#https://nodejs.org/en/download/ | |
#nvm | |
#https://github.com/creationix/nvm#install-script | |
cd /tmp | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash | |
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm" |
Access Tokens Password Grant 12.2
POST /oauth/token HTTP/1.1
Host: authorization-server.com
Swagger API Middlewares and Firebase https://www.youtube.com/watch?v=YqThrxlUgnE
Swagger generated server https://github.com/kalaspuffar/notes-server
[lowdb] lowdb Small JSON database for Node, Electron and the browser. Powered by Lodash. https://github.com/typicode/lowdb
db.get('posts')
.push({ id: 1, title: 'lowdb is awesome'})
.write()
// Created by Robert N. 030715 | |
// Candle labels | |
study(title = "Candles", overlay = true) | |
trend= input(5, minval=1, title="Trend in Bars") | |
DojiSize = input(0.05, minval=0.01, title="Doji size") | |
data=(abs(open - close) <= (high - low) * DojiSize) | |
plotchar(data, title="Doji", text='Doji', color=white) |
#node | |
#https://nodejs.org/en/download/ | |
#nvm | |
#https://github.com/creationix/nvm#install-script | |
cd /tmp | |
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash | |
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |
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 |
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
admin.initializeApp(); | |
const db = admin.firestore(); | |
db.settings({ timestampsInSnapshots: true }); | |
const { ethereumAccountCreate } = require("./ethereumAccountCreate"); |