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
# testing in C:\DOCUME~1\Matteo\IMPOST~1\Temp\npm-test-600 | |
# global prefix = C:\DOCUME~1\Matteo\IMPOST~1\Temp\npm-test-600\root | |
+node "C:\Programmi\nodejs\node_modules\npm\bin\npm-cli.js" install "C:\Programmi\nodejs\node_modules\npm" | |
$$$$$$ cd C:\DOCUME~1\Matteo\IMPOST~1\Temp\npm-test-600\root; PATH=C:\Programmi\nodejs;C:\DOCUME~1\Matteo\IMPOST~1\Temp\ | |
npm-test-600\root;c:\DOCUME~1\Matteo\IMPOST~1\Temp\npm-test-600\root\node_modules\.bin;C:\Programmi\Heroku\ruby-1.9.3\bi | |
n;C:\imagemagick;C:\Python27\;C:\Python27\Scripts;C:\Programmi\Eazfuscator.NET;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS | |
\System32\Wbem;C:\Programmi\IDM Computer Solutions\UltraEdit-32;C:\Programmi\ATI Technologies\ATI Control Panel;C:\Progr | |
ammi\ATI Technologies\ATI.ACE\Core-Static;C:\VXIPNP\WinNT\Bin;C:\Programmi\Git\cmd;C:\Programmi\Heroku\bin;C:\Programmi\ | |
git\cmd;C:\Programmi\nodejs\;%APPDATA%\Python\Scripts;C:\FreePascal\bin\i386-Win32;C:\Documents and Settings\Matteo\Dati |
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
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. Unlike style sheets however, | |
# each selector can only be declared once. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# |
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
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. Unlike style sheets however, | |
# each selector can only be declared once. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# |
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
mkdir libradar | |
cd libradar | |
git init | |
yarn init | |
yarn add next --exact | |
mkdir pages components |
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
yarn add sequelize pg pg-hstore --exact |
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
yarn add graphql lokka lokka-transport-http --exact |
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
yarn add koa@2 koa-graphql koa-router@next koa-convert --exact |
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
"start": "node dist/server.js", | |
"clean": "rm -rf dist", | |
"prebuild": "npm run clean && mkdir dist && cp -r src/** dist/", | |
"build": "babel src --ignore pages/*,components/* -d dist && next build dist", |
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
Show hidden characters
{ | |
"presets": [ | |
"next/babel" | |
] | |
} |
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 { Lokka } from 'lokka'; | |
import { Transport } from 'lokka-transport-http'; | |
import { SERVER_URL } from '../config'; | |
/* singleton Lokka client */ | |
export default new Lokka({ | |
transport: new Transport(`${SERVER_URL}/graphql`) | |
}); |
OlderNewer