Skip to content

Instantly share code, notes, and snippets.

View eveporcello's full-sized avatar

Eve Porcello eveporcello

View GitHub Profile
@eveporcello
eveporcello / StarRating.css
Created August 30, 2017 02:23
StarRating.css
div.star-rating {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
div.star-rating p {
flex-basis: 100%;
}
{
"colors": [
{
"title": "ocean at dusk",
"color": "#00c4e2"
},
{
"title": "lawn",
"color": "#26ac56"
},
div.star {
cursor: pointer;
height: 25px;
width: 25px;
margin: 2px;
background-color: #AAAAAA;
clip-path: polygon(50% 0%, 63% 38%, 100% 38%, 69% 59%, 82% 100%, 50% 75%, 18% 100%, 31% 59%, 0% 38%, 37% 38%);
}
div.star.selected {

Mongo Local Setup

Typical Mongo Service (photo-share database)

mongodb://localhost:27017/photo-share

Installing mongo

@eveporcello
eveporcello / UX-Resources.md
Last active August 29, 2018 23:11
UX Resources
@eveporcello
eveporcello / index.js
Last active February 15, 2020 14:39
This is the index.js to be used when the database is incorporated
const { ApolloServer, gql } = require("apollo-server");
const { MongoClient, ObjectID } = require("mongodb");
const typeDefs = gql`
type Photo {
id: ID!
name: String!
description: String
category: PhotoCategory!
url: String
const express = require("express");
const expressPlayground = require("graphql-playground-middleware-express")
.default;
const { ApolloServer, gql, PubSub } = require("apollo-server-express");
const { MongoClient } = require("mongodb");
const { createServer } = require("http");
const path = require("path");
const { authorizeWithGithub, generateFakeUsers, uploadFile } = require("./lib");
const typeDefs = gql`
@eveporcello
eveporcello / index.js
Created February 1, 2019 17:43
Change Data with GraphQL Mutations
```javascript
const { ApolloServer } = require("apollo-server");
const typeDefs = `
type Query {
"Count of total days skied during a season"
totalDays: Int
}
type Mutation {
@eveporcello
eveporcello / MongoSetup.md
Created March 24, 2019 03:40
MongoSetup.md

Mongo Local Setup

Typical Mongo Service Route

mongodb://localhost:27017/pet-library

Installing mongo