Clone repo:
git clone git://github.com/maccman/juggernaut.git
cd juggernaut
Create Heroku app:
heroku create myapp --stack cedar
heroku addons:add redistogo:nano
git push heroku master
| import React from 'react' | |
| import Head from 'next/head' | |
| import { ApolloProvider } from '@apollo/react-hooks' | |
| import { ApolloClient } from 'apollo-client' | |
| import { InMemoryCache, IntrospectionFragmentMatcher } from 'apollo-cache-inmemory' | |
| import { createHttpLink } from 'apollo-link-http'; | |
| import { setContext } from 'apollo-link-context'; | |
| import fetch from 'isomorphic-unfetch' | |
| import introspectionQueryResultData from '../fragmentTypes.json' | |
| import querystring from 'querystring' |
| # Rails controller concern to enable Devise authentication for ActiveStorage. | |
| # Put it in +app/controllers/concerns/blob_authenticatable.rb+ and include it when overriding | |
| # +ActiveStorage::BlobsController+ and +ActiveStorage::RepresentationsController+. | |
| # | |
| # Optional configuration: | |
| # | |
| # Set the model that includes devise's database_authenticatable. | |
| # Defaults to Devise.default_scope which defaults to the first | |
| # devise role declared in your routes (usually :user) | |
| # |
| ################################################################## | |
| # # | |
| # Copyright (C) 2012 Dommmel <[email protected]> # | |
| # This code is released under WTFPL, version 2.0. # | |
| # # | |
| ################################################################## | |
| # Usage: | |
| # <span id="sayhi">привет</span> | |
| # <script> |
| #!/bin/bash | |
| COUCH_DB="http://127.0.0.1:5984/what_ever" | |
| JSON_FOLDER="./jsonFiles/*" | |
| TMP_FILE="/tmp/_couchdb_import.json" | |
| for file in $JSON_FOLDER | |
| do | |
| echo '{"docs":' > $TMP_FILE | |
| cat $file >> $TMP_FILE |
Clone repo:
git clone git://github.com/maccman/juggernaut.git
cd juggernaut
Create Heroku app:
heroku create myapp --stack cedar
heroku addons:add redistogo:nano
git push heroku master