Skip to content

Instantly share code, notes, and snippets.

import nodemailer from "nodemailer";
function setup() {
return nodemailer.createTransport({
host: 'smtp.mailtrap.io',
port: 2525,
auth: {
user: '82c2a63f7c2386',
pass: '8ebe1c2712bb52'
import nodemailer from "nodemailer";
function setup() {
return nodemailer.createTransport({
host: 'smtp.mailtrap.io',
port: 2525,
auth: {
user: '82c2a63f7c2386',
pass: '8ebe1c2712bb52'
import Syncano from 'syncano-server'
import crypto from 'crypto'
export default (ctx) => {
const {data,response} = Syncano(ctx)
if (ctx.args.sender && ctx.args.receiver && ctx.args.wishes) {
data.wishes.create({
sender: ctx.args.sender,
receiver: ctx.args.receiver,
name: Christmas2017
description: Socket for christmas 2017 from Polarbits with love.
version: 0.0.1
classes:
wishes:
- name: sender
type: string
- name: receiver
type: string
import Syncano from 'syncano-server'
export default (ctx) => {
const {response,data} = Syncano(ctx)
if(ctx.args.wish){
data.wishes.where("cryptoId", ctx.args.wish).list()
.then(wishes=>{
response.json({wishes})
})
}