Skip to content

Instantly share code, notes, and snippets.

View betaflag's full-sized avatar
💭
Developing the future

Nicolas Lupien betaflag

💭
Developing the future
View GitHub Profile
@betaflag
betaflag / index.js
Last active January 18, 2019 20:36
Simple GraphQL Server using Apollo Server for sentiment analysis that fits in a single
const { ApolloServer, gql } = require("apollo-server");
var Sentiment = require("sentiment");
var sentiment = new Sentiment();
const typeDefs = gql`
type SentimentAnalysis {
score: Int
comparative: Float
tokens: [String]
words: [String]
@betaflag
betaflag / docker-compose.yml
Last active January 10, 2019 16:35
An example of a NodeJS app running on port 4000 along with postgres in to separate containers with Docker Compose.
version: "3"
services:
app:
build: .
environment:
NODE_ENV: development
ports:
- "4000:4000"
depends_on:
- postgres

Keybase proof

I hereby claim:

  • I am betaflag on github.
  • I am betaflag (https://keybase.io/betaflag) on keybase.
  • I have a public key ASA0v_txrx8Lw7z78ERhiXmJPugvFFQrfZ1jHufXwRojeQo

To claim this, I am signing this object: