This file contains 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 { useMutation } from "@apollo/react-hooks"; | |
import { Snackbar } from "@material-ui/core"; | |
import CloseIcon from "@material-ui/icons/Close"; | |
import firebase from "firebase/app"; | |
import "firebase/auth"; | |
import "firebase/database"; | |
import React from "react"; | |
import App from "./App"; | |
import IconButton from "@material-ui/core/IconButton"; | |
import defaultUserImage from "./images/default-user-image.jpg"; |
This file contains 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 ApolloClient from "apollo-client"; | |
import { WebSocketLink } from "apollo-link-ws"; | |
import { InMemoryCache } from "apollo-cache-inmemory"; | |
import gql from "graphql-tag"; | |
import { GET_QUEUED_SONGS } from "./queries"; | |
// const httpurl = "https://hasura-insta.herokuapp.com/v1/graphql"; | |
const wsurl = "wss://react-music-share.herokuapp.com/v1/graphql"; | |
const headers = { "x-hasura-admin-secret": "V_'P8nVU" }; |
This file contains 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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
# Runtime data | |
pids | |
*.pid | |
*.seed | |
*.pid.lock |
This file contains 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
{ | |
"version": 2, | |
"name": "vue-share", | |
"builds": [{ "src": "package.json", "use": "@now/static-build" }], | |
"routes": [ | |
{ "src": "^/js/(.*)", "dest": "/js/$1" }, | |
{ "src": "^/css/(.*)", "dest": "/css/$1" }, | |
{ "src": "^/img/(.*)", "dest": "/img/$1" }, | |
{ "src": ".*", "dest": "/index.html" } | |
] |
This file contains 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
//server | |
const { ApolloServer } = require("apollo-server"); | |
const typeDefs = require("./typeDefs"); | |
const resolvers = require("./resolvers"); | |
const { findOrCreateUser } = require("./controllers/userController"); | |
const mongoose = require("mongoose"); | |
require("dotenv").config(); |