サーバーサイドアプリケーションを起動する。
$ go run server.go
CLIENT_ID をGoogleで取得したclient_idに置き換える。その後クライアントサイドのdevサーバーを起動する。
$ npm start
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "path/filepath" | |
| "strings" | |
| mecab "github.com/shogo82148/go-mecab" |
| package main | |
| import ( | |
| "fmt" | |
| mecab "github.com/shogo82148/go-mecab" | |
| ) | |
| func main() { | |
| tagger, err := mecab.New(map[string]string{"output-format-type": "wakati"}) |
サーバーサイドアプリケーションを起動する。
$ go run server.go
CLIENT_ID をGoogleで取得したclient_idに置き換える。その後クライアントサイドのdevサーバーを起動する。
$ npm start
| import React, { Component } from 'react'; | |
| import { BrowserRouter as Router, Switch, Route, Link, Redirect } from 'react-router-dom'; | |
| const PrivateRoute = ({authenticated, render, ...rest}) => ( | |
| authenticated ? ( | |
| <Route {...rest} render={render} /> | |
| ) : ( | |
| <Route | |
| {...rest} | |
| render={props => |
| import React, { Component } from 'react'; | |
| import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom'; | |
| class App extends Component { | |
| state = { | |
| authenticated: false, | |
| gapi: null | |
| } | |
| componentDidMount() { | |
| this.downloadGoogleScript(this.initSignInButton) |
| import React, { Component } from 'react'; | |
| class App extends Component { | |
| componentDidMount() { | |
| this.downloadGoogleScript(this.initSignInButton) | |
| } | |
| downloadGoogleScript = (callback) => { | |
| const element = document.getElementsByTagName('script')[0]; | |
| const js = document.createElement('script'); | |
| js.id = 'google-platform'; |
| { | |
| "presets": ["react-native"], | |
| "plugins": ["transform-decorators-legacy"] | |
| } |
create-react-app react-mobx-todo
cd react-mobx-todo
yarn run eject
yarn add babel-preset-es2015 babel-preset-stage-1 babel-plugin-transform-decorators-legacy -D
yarn add mobx mobx-react mobx-remotedev -D
| package com.github.kmizu.parser_hands_on.json; | |
| import com.github.kmizu.parser_hands_on.AbstractParser; | |
| public abstract class AbstractJSONParser extends AbstractParser<JSONNode> { | |
| } |
| package com.github.kmizu.parser_hands_on.expression; | |
| import com.github.kmizu.parser_hands_on.AbstractParser; | |
| public abstract class AbstractExpressionParser extends AbstractParser<ExpressionNode> { | |
| } |