This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
export const getUploadSignedURL = (params) => { | |
return new Promise((resolve, reject) => { | |
axios | |
.get("http://localhost:3000/attachments/upload", { | |
params, | |
}) | |
.then((response) => { | |
resolve(response.data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This config file takes an scss file, compiles it to css and | |
* then uses postcss to minify ("cssnano") the file while also autoprefixing | |
* ("autoprefixer") and provides additional features like scaling fonts via | |
* "rucksack". | |
* | |
* Usage: | |
* 1) npm install //installs all packages needed | |
* 2) gulp watch:scss //watches for changes in any scss file in scssPath | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file: index.js | |
var _ = require("lodash"); | |
var express = require("express"); | |
var bodyParser = require("body-parser"); | |
var jwt = require('jsonwebtoken'); | |
var passport = require("passport"); | |
var passportJWT = require("passport-jwt"); |