Rã®ããããããã±ã¼ã¸ãã¢ãããã¼ããã¦ã¾ã¨ãããå®çªã®åæææ³ãã¯ãããå¯è¦åããã¼ã¿å¦çã«ä¾¿å©ãªãã®ãªã©ãå¹ åºãç´¹ä»ãããä¸ã«ã¯ãã¹ãã¨ãããã®ãããããæå¤ã¨ç¥ããã¦ããªããã¤ã³ã¹ãã¼ã«ãã¦ããã¨ä¾¿å©ãªãã®ã¾ã§ã使ãæ¹ã®ä¾ãæãã¦èª¬æãã¦ããã ããã«ã¦ã§ã¢çãªã¬ã¤ã¤ã¼ã®ã©ã¤ãã©ãªï¼mustï¼ curl ãã¡ã¤ã«ãwebãããã¦ã³ãã¼ãããã¨ãã«ä½¿ãã ãã¼ã¿ãã¡ã¤ã«ãããã±ã¼ã¸ã®ãã¦ã³ãã¼ããçºçããå¦çã§å é¨çã«ä½¿ãããã©ã¤ãã©ãªã§ãä»ã®ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ã®éã«åæã«ã¤ã³ã¹ãã¼ã«ããããã¨ãå¤ããæèããããã¨ã¯å°ãªãããã±ã¼ã¸ããã¾ã«ä¾åé¢ä¿ã®åé¡ã§ã解決ãããã«æªã¤ã³ã¹ãã¼ã«ã®å ´åãããã®ã§ãæ示çã«ã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã read.csv('https://...') ãªã©ã®ããã«å¿ è¦ã devtools GitHubããã®ã¤ã³ã¹ãã¼ã«ãªã©ãã»ã¨ãã©ãGitHu
Nuxt.jsã§Google Analyticsãããã£ãã®ã§ããããã調ã¹ãã¨ãã®åå¿é²ã å ¬å¼ãã©ã°ã¤ã³ãããããã(Google Analytics Module) ä¸ã§ã¯ãvue-analyticsã使ã£ã¦ããã®ã§ãåºæ¬vue-analyticsã®ããã¥ã¡ã³ããè¦ãã£ã½ãã ã¤ã³ã¹ãã¼ã« $ npm install --save @nuxtjs/google-analytics nuxt.config.jsã§ã®è¨å® IDè¨å®ã®ã¿ modules: [ '@nuxtjs/google-analytics', { id: 'UA-xxxxx-x' } ], ä»ã®è¨å®ããããã¨ã modules: [ "@nuxtjs/google-analytics"], "google-analytics": { id: "UA-XXXXX-XX", }, ãã¼ã¸ã®ãã©ããã³ã° åæã«ãã£ã¦ãããã£
注ï¼ãæ¬ç¨¿ã¯å ã¯JSON Web Tokensï¼JWTï¼ã«ã¤ãã¦æ¸ãããã®ã§ãããJWTã¯Javascript Object Signing and Encryptionï¼JOSEï¼ã®ãµãã»ããã§ããããã以ä¸ã®æ¹è©ã¯ã©ã¡ããã¨ããã¨JOSEå ¨ä½ã«ç¦ç¹ãå½ã¦ã¦ãã¾ãã ããæ¢ã«Javascript Object Signing and Encryptionï¼JOSEï¼ãå®è£ ãããã¨ã決ãã¦ãããªãããããJSON Web TokensãJSON Web Encryptionï¼JWEï¼ãJSON Web Signaturesï¼JWSï¼ã®ãããã§ãã£ã¦ãããã®æ±ºæã«çåãæã¤ã¹ãã§ããééããç¯ããã¨ãã¦ããå¯è½æ§ãããã¾ãã ãã®æ稿ã«æ¸ãããã¨ã¯ãã¹ã¦ãRFC 7519ãRFC 7515ãããã¦RFC 7516ã«åã£ã¦ãã¾ããå°æ¥ãæ°è¦ã®RFCã§ã¯ä»¥ä¸ã«æãããããªæ¬ é¥ã¯ãªããªã£ã¦ããå¯è½
Nuxt.jsã§ã¢ããªä½ããã©ããã£ã±ãå½éå大äºãè±èªçã¨æ¥æ¬èªçã¯ä½ã£ã¦ãããããã nuxt-i18nã使ãã¨ç°¡åã«å¤è¨èªå¯¾å¿ã§ããã®ã§ããã®æã®åå¿é²ã ã¤ã³ã¹ãã¼ã« $ npm install --save nuxt-i18n è¨å® modules: [ ['nuxt-i18n', { strategy: "prefix_and_default", // ããã©ã«ãã®langãè¨èªæå®ã®ãã¹ãçæããè¨å® locales: [ { code: 'ja', iso: 'ja_JP' }, { code: 'en', iso: 'en_US' }, ], defaultLocale: 'ja', vueI18n: { fallbackLocale: 'ja', messages: { // ã¡ãã»ã¼ã¸ã¯ããã§è¨å® "en": { "hello": "HELLO" }, "ja": {
Vue.jsã¨Nuxt.jsã§ããããä½ã£ã¦ããããã©ãTypeScriptãç´ æµããããã create-nuxt-appã ã¨TypeScriptããªãã®ã§ãTypeScriptåããã¨ãã«ãããã¨ãæ´çããã¨ãã®ã¡ã¢ TypeScriptã使ããããã«è¨å®ãã 0. ãã£ã¬ã¯ããªæ§æ ãã£ã¬ã¯ããªæ§æã¯ãããªæãã ããã¸ã§ã¯ãã¯create-nuxt-appã§ä½æ Firebase Functionsã使ãã®ã§ãappé ä¸ãsrcDirã«å¤æ´ãã¦ãã . âââ app ... Nuxtã®srcDir â âââ assets â âââ components â âââ layouts â âââ middleware â âââ pages â âââ plugins â âââ static â âââ store âââ functions ... Firebase Func
JWT ã¨ã¯ ã¯ããã« ãã¼ã¯ã³ãåå¾ãã¦ã¿ã ãã¼ã¯ã³ã使ã£ã¦èªè¨¼ãå¿ è¦ãªAPIãå®è¡ãã¦ã¿ã ã¾ã¨ã JWT ã¨ã¯ Json Web Token ã®ç¥ãä¸è¨ã§ãã£ã¦ãã¾ãã¨JSONã«ç½²åãããã®ããã¡ãã®è¨äºã§è©³ãã解説ããã¦ãã¾ãã JSON Web Token ã®å¹ç¨ - Qiita ã¯ããã« ãã£ããç°å¢ãä½ã£ã¦ããã¾ããæåã¯ã決ã¾ãã®ããã¸ã§ã¯ãä½æã§ãã 詳ããæé ã¨èª¬æã¯ãã¡ãã®è¨äºããåç §ãã ããã racchai.hatenablog.com Lightweight Django ä½è : Julia Elman,Mark Lavinåºç社/ã¡ã¼ã«ã¼: O'Reilly Mediaçºå£²æ¥: 2014/11/04ã¡ãã£ã¢: Kindleçãã®ååãå«ãããã°ãè¦ã ã§ã¯ããã¸ã§ã¯ããä½æãã¾ãã $ django-admin startproject racchai $
èª²é¡ ãæ¥åã§ä½¿ã£ã¦ãããã©ãããç¥ããªãããã©ã¨ããããåãã¦ãããã¨ãããã¨ãé常ã«å¤ãã®ã§ã調ã¹ããã¨ã試ãããã¨ãã¾ã¨ãã¦ãããã¨æãã¾ãã ä»åã¯Django REST framework JWTç·¨ã§ãã ããããJWTã£ã¦ï¼ åè https://tools.ietf.org/html/rfc7519 https://jwt.io JSONå½¢å¼ã§èªè¨¼ã»è¨¼æããããã®ä»æ§ Header.Payload.Signatureãããªã Headerã«ã¯ãã¼ã¯ã³ã®æ å ±ã¨æå·åã®æ å ±ãPayloadã«ã¯ã¨ã³ãã£ãã£(ã¦ã¼ã¶ã¼)ã®æ å ±ãSignatureã«ã¯ç½²åãå ¥ã£ã¦ãã ãããããã£ã¤ãã¦æå·åãããã®ã渡ã æµãã¨ãã¦ã¯ã ãã°ã¤ã³æåããã¨ãµã¼ãã¼ããJWTãè¿ããã 以éããªã¯ã¨ã¹ãã®Authorizationã«åãåã£ãJWTãå«ããã¨ãå¶éããã¦ããå¦çã許å¯ããã DRFã§ã©
JSON Web Token(JWT)ã«ã¤ãã¦èª¿ã¹ã¦ããããJWTã¯çµ¶å¯¾ã«ä½¿ã£ã¦ã¯ãããªãã¨ãããããæ¸ããã¦ãã¦ã使ã£ã¦ãããè¯ãããããªãã£ãã ãªã®ã§ä»¥ä¸ã®ç¹ã調ã¹ã¦ã¿ã¾ããã JWTã¯ãªã使ã£ã¦ã¯ãããªããã¨è¨ããã¦ããã®ã JWTã®ä»£æ¿æ¡ã¯ããã®ã ãªããç§ã¯ãã ã®ããã³ãã¨ã³ã¸ãã¢ã§ã»ãã¥ãªãã£ã®å°é家ã§ã¯ãªãã®ã§ç´ 人ã®å人çè¦è§£ã§ãã注æãã¦ãã ããã TL;DR JWTã¯ééãããããèå¼±ã«ãªããã¡ JWTã®ä»£æ¿ã¯PASETOãè¯ããã JSON Web Tokenã¨ã¯ JSON Web Token(JWT)ã¯ã»ãã¥ã¢ãªãã¼ã¯ã³ãçºè¡ããããã®æ¨æºä»æ§ã§ãã å人çã«ä»¥ä¸ã®ç¹ãç¹å¾´çã ã¨æãã¾ãã æ¨æºä»æ§ ä»æ§ãã·ã³ãã« ä»»æã®ãã¼ã¿ããã¼ã¯ã³ã«å«ãããã ãã¼ã¯ã³ã®å½é ãå¦èªã¯åºæ¥ãªã æå·åããã¦ããªãã®ã§ä¸èº«ã¯ç°¡åã«è¦ããã ç½²åã¢ã«ã´ãªãºã ãé¸æå¯è½ JWTã®ä»æ§
ãã®è¨äºã¯CAMPHOR- Advent Calendar 2018 11æ¥ç®ã®è¨äºã§ãã ãã®ãã³ããã°ãæ°èª¿ãã¾ãããNuxt + TypeScriptã§ä½æããSingle Page ApplicationãGAEã«ãã¹ããã¦ãServer Side Renderingãè¡ã£ã¦ãã¾ãã ããã°ç§»è¡ã®çµç·¯ãå®è£ æã®ããããããã¯ã¾ãææ¥å¥ã®è¨äºã§ã話ããã¾ããããã®å段ã¨ãã¦æ¬æ¥ã¯Nuxt + TypeScriptã®ã¢ããªã±ã¼ã·ã§ã³ãä½ãæã«èªåããã£ããã¨ãåå¿é²çã«è¨é²ãããã¨æãã¾ãã ã¾ãæ¬è¨äºã§ç´¹ä»ãã¦ããã½ã¼ã¹ã³ã¼ãã¯GitHubã«å ¬éãã¦ãã¾ãââ Embedded content: https://github.com/andoshin11/nuxt-typescript-example TypeScriptã¨ã¯ TypeScriptã¨ã¯Microsoftã®ä¸»å°ã§éçºã
å©ç¨æè¡ ä»¥ä¸ã®æè¡ãå©ç¨ãã¦ãã¾ãã Vue.js Nuxt.js (1.3.x) TypeScript (2.7.x) Element (2.4.x) Vue.js Vue.jsã¯JavaScriptã®ãã¬ã¼ã ã¯ã¼ã¯ã§ãã ãªãvue.js? Reactã¨Angularã¯éçºãã¦ãããããã¯ããããã¾ãããVue.jsã ãéçºçµé¨ãç¡ãããã§ãã ã¾ã2018/07/09ç¾å¨ã«ããã¦ãReactãAngularã«æ¯ã¹ã以ä¸ã®çç±ããè·å ´ã§ãå°å ¥ããããã¨æã£ã¦ãã¾ãã Vue.jsã¯ã³ã¹ããè¯ã(å¦ç¿ã³ã¹ãã¨ã§ãããã¨ã®ãã©ã³ã¹) Vue.jsã¯æ¥æ¬èªããã¥ã¡ã³ããå å®ãã¦ãã Elementã§å¿ è¦ãªãã¨ãã»ã¨ãã©ã§ãã Reactã¨Angularã®çµé¨ãæä¼ã£ã¦ã¯ãã¾ãããVue.jsã®ç¿å¾ã³ã¹ãã¯ä»ã®åå以ä¸ã ã¨æãã¾ãã Nuxt.js Nuxt.jsã¯Vue.jsã¢ããªã±ã¼ã·ã§
See a full list on Vue Telescope U Can Stock - U.S. stock market information platform for Korean. readable.report - View all of your stats from all of your apps with a single easy-to-read report. homefinder.com - Nation-wide real estate portal in the US. Find or sell your home on HomeFinder! www.gamevix.com - GameVix: Swap Video Game Discs - Spend much LESS ð°, play much MOAR ð®! (Nuxt.js + Vuetif
create-nuxt-appã§Nuxt.js+Expressã®ããã¸ã§ã¯ãã¯ç°¡åã«ä½ããã¨ãã§ãã¾ãããããã§ä½æããããã¸ã§ã¯ããTypeScriptåãã¦ã¿ã¾ããã TypeScriptåã®å¯¾å¿ã¯ãNuxt.jså´ãExpresså´ã§å¥ã ã¨ãªãã¾ããExpresså´ã¯ã¡ãã£ã¨é¢åãªã®ã§ãã¨ããããNuxt.jsã ãå ã«ãã£ã¦ãããã¨ãã§ãè¯ãã¨æãã¾ãã Nuxt.js+Expressããã¸ã§ã¯ãã®ä½æã¯ä¸è¨ã§ç´¹ä»ãã¦ããexpress-templateãå©ç¨ãããä»åã®è¨äºã¯ãã¡ãã®åæã®èª¬æã¨ãªãã¾ãã Nuxt+Expressã®ããã¸ã§ã¯ãä½æã§è¯ããããªã®ã¯ï¼ â» 2018/8ç¾å¨ã®æ å ±ã§ããã¨ããã©ããNuxt.js1ã®æ å ±ãæ··ãã£ã¦ãã¾ãã®ã§ãä¸è¨ãåããã¦ç¢ºèªãå¿ è¦ãªç®æãããã¾ãã Nuxt.jsã®ããã¸ã§ã¯ããNuxt.js2ã«ãã¼ã¸ã§ã³ã¢ãããã¦ã¿ã Nuxt.j
TypeScript + Vueãªããã¸ã§ã¯ãã§ESLintã使ã£ã¦ã¿ã¦ãç¾ç¶å¿ è¦ãªã¢ã¸ã¥ã¼ã«ãè¤æ°ãã£ã¦å°ãè¤éã ã£ãã®ã§ã¾ã¨ãã¦ããã¾ãã ãµã³ãã«ã¯ä»¥ä¸ã§ãã github.com å 容ã¯ã©ãã§ãè¯ããã§ããããããªæãã®ãããç°¡åãªTODO風ã®ã¢ããªã±ã¼ã·ã§ã³ã§ãã ãªãEslintã使ãã JavaScriptã®ããã®Lintingãã¼ã«ã¯ããããããã¾ãããVueã®roadmapã«ãããéããVueã®å ¬å¼ã¹ã¿ã¤ã«ã¬ã¤ãããµãã¼ãããESLintãã©ã°ã¤ã³ãESLintã®ã¡ã³ããã«ããå ¬å¼ãã©ã°ã¤ã³ã¨ãã¦ä½ããã¦ãã¾ãã GitHub - vuejs/roadmap: Roadmap for the Vue.js project ãããããVueã®å ¬å¼ã¨ãã¦ãµãã¼ãããã¦ããã¨æãã®ã§ãç¹ã«ãã ããããªããã°ESLintã使ãã®ãè¯ããã¨æãã¾ãã ESLint for Type
ãé¡ ååã®è¨äºã§FirebaseAuthã使ã£ãåç´ãªSignIn/Outãå®è£ ããã ä»åã¯ãSignUpï¼ã¤ã¾ããFirebaseAuth管çã¦ã¼ã¶ã®æ°è¦ç»é²ï¼ãå®è£ ããã ååã¯FirebaseAuthã®ã³ã³ã½ã¼ã«ä¸ã§äºåã«ãã°ã¤ã³ç¨ã¦ã¼ã¶ãä½æãããã©ãä¾ãã°ãã種ã®ç®¡çç»é¢ãªã©ã§ã¯ãã°ã¤ã³å¯è½ãªã¦ã¼ã¶ã®ä½ææ©è½ãæãããããããã®ãªã®ã§ã SignIn/Outã¯JavaScriptã®SDKã§å®è£ ããã®ã§SignUpãåããããã¨æãã¨ããã ãã©ãJavaScriptã®SDKã§SignUpãè¡ãã¨ä½ã£ãé端ã«ãã®ã¦ã¼ã¶ã§èªåçã«ãã°ã¤ã³ããç¶æ ã«ãªãã®ã§ãããã¯ä½¿ããªãã ï¼ã¤ã¾ããã¦ã¼ã¶ä½æ権éãæã¤âã¦ã¼ã¶Aâã§ãã°ã¤ã³ãã¦âã¦ã¼ã¶Bâãä½ãã¨ããã®æç¹ã§ï¼âã¦ã¼ã¶Aâã§ãã°ã¤ã³ãã¦ããã®ã«ï¼Firebaseä¸ã¯âã¦ã¼ã¶Bâã§ãã°ã¤ã³ããç¶æ ã«å¤ãã£ã¦ãã¾ããï¼ ãªã®ã§ãSi
å æ¥ããããªè¨äºãæ¸ãã¾ããããã¨ã¦ã好è©ã§ 調åã«ä¹ã£ã¦ãPythonã®ãã¬ã¼ã ã¯ã¼ã¯ã®æ¯è¼ãæ¸ãããã¨æãã¾ãï¼ããã2018å¹´ææ°çã¨ããä½ç½®ä»ãã§æ¸ãã¾ãï¼ Pythonã®Flaskãã¬ã¼ã ã¯ã¼ã¯ã§Webãä½ãï¼ ã§ã¯ãå§ãã¾ãããï¼ Django Official Website | GitHub | PyPI | Awesome ç¹å¾´ã¡ã¢ Djangoã¯Pythonã®ãã¬ã¼ã ã¯ã¼ã¯ã§ãæãæåãªãã¬ã¼ã ã¯ã¼ã¯ã§ãã Pythonã®ã¦ã§ããã¬ã¼ã ã¯ã¼ã¯ã¨è¨ã£ããDjangoãå®çªã¨è¨ã£ã¦è¯ãã§ãããã Flask Official Website | GitHub | PyPI | Awesome ç¹å¾´ã¡ã¢ Flaskã¯Pythonã®Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã§ãã ãã¤ã¯ãWebãã¬ã¼ã ã¯ã¼ã¯ã®ä¸ã§ã人æ°ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ããä¸è¦æ¨¡ä»¥ä¸ã®éçºã«ã対å¿ãã¦ããã¨ãããã¨
åææ¡ä»¶ ãVue/Nuxtã-Vuexç·¨- 天æ°APIã使ã£ã¦ä¸éãããã³ããå®è£ ãã¦ã¿ã ä¸è¨è¨äºã«ã¦å¤©æ°APIã®ãã¼ã¿ãåå¾æ¸ã¿ è¦ããå´ãä½ã£ã¦ããï¼ ååã®ç¶ã ForcastCard ã¨ããã³ã³ãã¼ãã³ããä½ã£ã¦ã¿ã¾ããã ã¤ã¡ã¼ã¸ã¯ãããªæãã <template> <section class="weather"> <h1 class="weather__title">{{ weather.title }}</h1> <ForcastCard v-for="(forecast, i) in weather.forecasts" :forecast="forecast" :key="`weather__forcasts-key-${i}`"/> </section> </template> <script> import ForcastCard from '~/compone
ã¯ãã㫠天æ°APIãä¾ã«ãèªåãç解ãã«ããã£ãVuexã»ãã¹ãï¼jestï¼ãã¡ã¤ã³ã«è§£èª¬ãããã¨æãã¾ãã åä½ã®è¨äºï¼Vuexã ãã¨ãï¼ã¯è¯ããã®ãããããããã®ã§ãä¸éãå®è£ ããã¨ããããªã³ã¼ãã«ãªããã¼ãã¨ãããµã³ãã«æãæèãã¾ããð ç°å¢ nuxt : 2.0.0 @vue/test-utils: 1.0.0-beta.26 vue-jest : 3.0.0 vuex-map-fields : 1.3.1 lodash : 4.17.11 axios : 0.18.0 ç®æãã¨ãã livedoorã®ã天æ°Webãµã¼ãã¹APIãWeather Hacksãã使ã£ã¦å¤©æ°ãåå¾ ï¼http://weather.livedoor.com/weather_hacks/webservice ï¼ åå¾ãããã¼ã¿ãã¹ãã¢ï¼Vuexï¼ã§ç®¡ç ãä»æ¥ããæ´ãã®ã¡é¨ããç»åãé¨åãã³ã³ãã¼ãã³
ã·ãªã¼ãºããã¯ãã³ãã¼ ä½ãèããã« Emacs ã使ã£ã¦ Clojure ã® Luminus webframework ã使ã Luminus ã®ãµã¼ãå´ã§æã£åãæ©ãAPIã試ãããã¡ã¢æ¸ã Luminus 㧠re-frame ãping-pong ãã¿ã³ã追å ãã¦ã¿ãã¡ã¢æ¸ã Luminus 㧠GCE ä¸ã® API ãå©ãã¦ã¿ã æ¥åï¼ãªããè¦ãã Web ãµã¼ã建ã¦ãã å æ¥å¤§å¦ã«ã¦ã¨ãã課é¡ãããã³ã¬ã¼ã¹ãã¾ãã¦ããã®éã«ãã®ãããªè¦æ±ãçã¾ãã¾ããã å ·ä½çã«ä½ããããã£ããã¨è¨ãã¾ãã¨ãä½ããã®æ©è½ãæãæ©æ¢°å¦ç¿APIãGCEä¸ã§è¤æ°åããã¦ããããããç¨ãã¦ä½ãç®ã«åªããå½¢ã«ãã¦ãã¢ã³ã¹ãã¬ã¼ã·ã§ã³ãããããã¨ããäºã§ãã ãªãã®ãã¨ã¯ãªãã« Django ã§ã使ãã°ï¼ã¨ãã御æ¹ãããã£ãããã¾ãã§ãããããç§ã¯ Python ã³ã¼ããè¦ã㨠Tensorflow ã
åº éçºãã·ã³ã§ç¨ãããããã¨ãå¢ãã¦ãã¦ããChromebookãï¼ä¸åã¡ããã§è¡åè²·ããããããã«HD 15ã¤ã³ããã£ã¹ãã¬ã¤ã§éãï¼KG以ä¸ãåæ¥ä½æ¥ãããã¯ããããªã¼ã ãã§ããªããã®ã§ãéå®ãããã Chromebookã¯ãè¿æãGUIã¢ããªãåãä»®æ³Linuxç°å¢ï¼crostiniï¼ãæä¾ããããã¨ã«ããçµ±åéçºç°å¢ï¼IDEï¼ãåãããã«ãªã£ã¦ãããã ããæ¥æ¬ã§å®ä¾¡ã«å ¥æã§ããChromebookã¯ãRAM容éã2GBã¾ãã¯4GBã¨ãã£ãæ§æã¨ãªãï¼RAM容éãå¤ãé«éãªCPUãç©ãã Chromebookã¯ãAmazonçãä»ãã¦è¼¸å ¥ãããã¨ã«ï¼ããã®ãããã³ãã³ãã©ã¤ã³ã¤ã³ã¿ã¼ãã§ã¤ã¹ï¼CLIï¼ã§å°ãªãã®RAMãæ´»ãããéçºãè¡ãæ¹æ³ããã¹ã¿ã¼ãã¦ãããæ¹ãè¯ãããã¨ããã¨ã³ããªã¼ã Chromebrew Chromebookã§éçºè ã¢ã¼ãã«å ¥ã£ãå ´åãã¯ããã«Chromebr
ã¯ããã« ã¢ããã³ãã«ã¬ã³ãã¼18æ¥ç®ãaptpodã®ãããªããµã¼ãã¼ãµã¤ãã¨ã³ã¸ãã¢ããå±ããã¾ãã ååã¯Goã®ãã©ã³ã¶ã¯ã·ã§ã³ã®è©±ãæ¸ãã¾ããï¼ãã¡ãï¼ãä»åã¯çè ã大好ããªã¨ãã£ã¿ ãVimã ã«ã¤ãã¦æ¸ããã¨æãã¾ããã¨ããã£ã¦ãå®ææ¦äºããã¤ãããããã¾ããããããã¢ãã¯ãªãã¨ãèªãã¤ãããããã¾ãããããããèªããªãã§ããã表é¡ã®éãåå¿è åãã®è¨äºã«ãããã¨æãã¾ãã çè ã®Vimã¹ãã« ãVim好ããã¨è¨ã£ã¦ããVimScriptã¯ãããããã¾ããããç´ ã®Vimãããã¾ã§ä½¿ãããªãã¦ããªããããªæ°ããã¾ããã§ããããããªçè ã§ããã©ã°ã¤ã³ãæ´»ç¨ããªãããã¨ã¦ã便å©ã«Vimã使ããã¨ãã§ãã¦ãã¾ãããããªæãã®Vimã¹ãã«ã§ãã ã¡ãªã¿ã«ãVimã¯2013å¹´ãããã使ã£ã¦ãã¾ããä»ã¯åºæ¬çã«ã¿ã¼ããã«ã¨Vimã¨ãã©ã¦ã¶ã§çãã¦ãã¾ãã 対象èªè Vimåãã¦è§¦ã人 Vimã
åæ© GCEã®æä½ã®ããã«Windowsä¸ã§ä¸æããã¨åãEmacsã欲ããï¼ ã¨ããçç±ã§GCEãç¨ããå¿ è¦ããã£ãã®ã§ãããsshæ¥ç¶ãããã¿ã¼ããã«ç°å¢ããã£ãã»ãã便å©ãªã®ã§ããããªãEmacsã使ãã ã¨ãªãã¾ããã ãããç´æ¥ Windows ã§åããã¨è²ã ä¸ä¾¿ãªãã¨ãå¤ãã®ã§ä¸å°ã«Linuxã欲ãããªããçµæ以ä¸ã®é¸æè¢ãå¾ããã¾ããã Bash on Ubuntu ã WSL ã使ã Docker ã使ã ãããåè ã¯æ¢ã«å¥ã®ç®ç(主ã«Windowsã®ãã¡ã¤ã«æä½ã¨Org-modeãç¨ããã¬ãã¼ãä½æ)ã§Emacsã使ã£ã¦ãããããå¥ã®ç°å¢ã欲ãããªãã¨ãªãå¾è ãæ¡ç¨ãããã¨ã«ãªãã¾ããã Docker-Toolbox for Windows ã®ã¤ã³ã¹ãã¼ã« ã㦠Docker ã使ãã«ããã£ã¦ãç§ã¯ä»®æ³ç°å¢é¢é£ã§ã¯ Virtual Box ãã¡ã¤ã³ã«ä½¿ã£ã¦ããã®ã§ Doc
from django import forms class NameForm(forms.Form): name = forms.CharField(label='Your name', max_length=100) ä¸è¨ã® NameForm ã¨ããFormã®ãã¹ããpytestã§æ¸ãã¦ã¿ã¾ãã import pytest from .forms import NameForm @pytest.mark.parametrize('name,is_valid', [ ('name', True), (1, False), (None, False), ]) def test_nameform(name, is_valid): form_data = { 'name': name } form = NameForm(data=form_data) assert form.is_valid(
ããæ¥CTOããåã«å å½ãä¸ãã¾ããã ãã¹ãã³ã¼ããä½æãã... ã¨ã ç°å¢ã¯Vue + Jestã¨ãããã¨ã§è²ã 調ã¹ã¦ã¿ããã®ã®ã種é¡ãå¤ããã... ã»https://vue-test-utils.vuejs.org/ja/guides/ ã»https://lmiller1990.github.io/vue-testing-handbook/ja/#vue-js%E3%83%86%E3%82%B9%E3%83%88%E3%83%8F%E3%83%B3%E3%83%89%E3%83%96%E3%83%83%E3%82%AF ã»https://jestjs.io/docs/ja/testing-frameworks ã©ãã¿ãã°ããããã ãã§ã«Jest-test-Vueã®ãããªã©ã¤ãã©ãªãå ¥ã£ã¦ããã®ã§ããã使ããã¨ã«ãã¾ããã è¦ä»¶ã®è¨å® ã¨ãããããåããã¹ãã³ã¼ããã¨ã®ãéããå
ã¯ããã« Reactã¨Playã§èªè¨¼ã¯ã©ã®ããã«ããã°ãããã¨æã調ã¹ã¦ã¿ã¾ããã èªè¨¼ã®åºæ¬çãªæµãã«ã¤ãã¦ã¯ãã¡ããåèã«ãã¾ãããèªè¨¼ãµã¼ãã¹ã¨ãã¦APIã®ã¨ã³ããã¤ã³ããç¨æãã¦ãReactã¢ããªã±ã¼ã·ã§ã³ããèªè¨¼ããæ¹æ³ã§ãã èªè¨¼ã«ã¯JWTã使ç¨ãã¾ããã¾ãJWTå ã«ãã¼ã«ãå ¥ãããã¨ã§èªå¯æ©è½ã追å ãã¾ãã Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã«ã¯Playã使ç¨ãã¦ãã¾ãã èªè¨¼ã¨èªå¯ã®ã©ã¤ãã©ãªã«ã¯Silhouetteã使ç¨ãã¾ããä¸ããã ã¨åããã¥ããã®ã§play-silhouette-seedã®ãã³ãã¬ã¼ãã使ç¨ãã¦ãã¾ãã ãããå°ãå¤ãã¦JWTèªè¨¼ããã¦ã¿ããã¨æãã¾ãã Silhouetteã®æ¦è¦ã«ã¤ãã¦ã¯ãã¡ããåç §ãã¾ããã 使ç¨ãããã¼ã¸ã§ã³ã§ãã Play 2.5.4 Silette 4.0 åæè¨å® Silhouetteã®ã¨ã³ããã¤ã³ãã§ä½¿ç¨ãã Ide
åææ¡ä»¶ ãVue/Nuxtã-Vuexç·¨- 天æ°APIã使ã£ã¦ä¸éãããã³ããå®è£ ãã¦ã¿ã ä¸è¨è¨äºã«ã¦å¤©æ°APIã®ãã¼ã¿ãåå¾æ¸ã¿ ãVue/Nuxtã-ã³ã³ãã¼ãã³ãç·¨- 天æ°APIã使ã£ã¦ä¸éãããã³ããå®è£ ãã¦ã¿ã ä¸è¨è¨äºã«ã¦ã³ã³ãã¼ãã³ããç»é¢å®æ ãVue/Nuxtã-ãã¹ãç·¨ï¼ã³ã³ãã¼ãã³ãï¼- 天æ°APIã使ã£ã¦ä¸éãããã³ããå®è£ ãã¦ã¿ã ä¸è¨è¨äºã«ã¦ã³ã³ãã¼ãã³ãã®ãã¹ãå®æ ã¹ãã¢ã®ãã¹ããæ¸ãã¦ã¿ã åå ã³ã³ãã¼ãã³ããã¹ããæ¸ããæ ã«props-template.jsãç¨æããããã« payloadStub ã«ã¢ãã¯ã®JSONãæ¸ãã¦ããã¾ãã import { createLocalVue } from '@vue/test-utils'; import Vuex from 'vuex'; import { cloneDeep } from 'lodas
ã¿ãªãããããã³ãã¨ã³ãã®ãã¹ãæ¸ãã¦ãã¾ããï¼ Nuxt.js(Vue.js)ã§Jestã使ã£ã¦ã³ã³ãã¼ãã³ãã®ãã¹ãã«ã¤ãã¦ã¯æ å ±ãããããããã¾ããããVuexã®Storeã®ãã¹ãã«ã¤ãã¦ãã¾ãæ å ±ããªãã£ãã®ã§ãä»åã¯VuexStoreã®ãã¹ãã«ã¤ãã¦ã¾ã¨ãã¾ããã ãNuxt v2ã¨Firebase(CloudFirestore)ã§PWA対å¿Webã¢ããªéçºãã§ä½æããã¢ããªã±ã¼ã·ã§ã³ãJestã§ãã¹ãããæé ã«ã¤ãã¦ã¾ã¨ãã¦ããã¾ãã ãã¹ãã®æºå ãã¹ãã«å¿ è¦ãªãã¼ã« Jest https://github.com/facebook/jest Jestã¯Facebookãéçºãé²ããããã³ãã¨ã³ãã®ãã¹ãã©ã³ãã§ãã Facebook製ãªã®ã§å½ç¶Reactã«å¯¾å¿ãã¦ãã¾ããããã®ä»JavaScriptã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ãã«ã使ç¨ã§ããVue.jsã§ãå©ç¨ã§ãã¾ãã RSp
ææ°ç=>ããã³ãã¨ã³ãã®ãã¹ãã«ã¤ãã¦èãã ç¾å¨ãæ°è¦ããã¸ã§ã¯ãã§ãNuxt.js+TypeScriptã使ã£ãSPAã®éçºãè¡ã£ã¦ãã¾ãããã®è¨äºã§ã¯ããããã£ãã±ã¼ã¹ã«ããã¦ã®ãNuxt.jsã¢ããªã±ã¼ã·ã§ã³ã§ã®ãã¹ãã«å¯¾ããèãæ¹ã¨ããã®æ¹æ³ãç´¹ä»ãã¾ãã TL;DR ã¦ããããã¹ã/çµåãã¹ã=>Jest UIãã¹ã=>Storybookããã¼ã¹ã«ãJestã§è¶³ããªãé¨åãè£ã ããã¸ã§ã¯ãã®æè¡ã¹ã¿ã㯠Nuxt.js Vue.js Vuex TypeScript Docker ãã¹ã種å¥ã®æ´ç ç°¡åã«ãä»åç»å ´ãããã¹ã種å¥ã®æ´çããã¦ããã¾ãããã詳ããã¯ãã°ã°ã£ããæ¸ç±ãèªãã ãããã®ããããããã¾ãã ã¦ããããã¹ã - åå¥ã®é¢æ°ãã¯ã©ã¹ãã³ã³ãã¼ãã³ãããã¹ãããã çµåãã¹ã - è¤æ°ã®é¢æ°ãã³ã³ãã¼ãã³ããã¤ãªãããã§ãã¹ãããã UIãã¹ã - ãã©ã¦ã¶ã
JavaScriptã§ä¸è¦æ¨¡éçºãè¡ãããã«TypeScript3ï¼ã¨Yarn, DefinitelyTyped, Jest, CircleCIï¼ãå°å ¥ããTypeScriptCircleCIJeststandard ã¯ããã« TypeScriptã¯JavaScriptã«éçåä»ããå°å ¥ããã¹ã¼ãã¼ã»ããï¼ä¸ä½äºæï¼ãªè¨èªã§ãã éçåä»ããããã®ã§JavaScriptãã大è¦æ¨¡ãªéçºã«åãã¦ãã¾ãã åèªèº«ãå°è¦æ¨¡æ¡ä»¶ããä¸è¦æ¨¡æ¡ä»¶ãæ å½ãããã¨ãå¢ãã¦ãã¦ãã¦ãä»å¾ããã£ã¨ä¸è¦æ¨¡æ¡ä»¶ã管çããããã«TypeScriptã®å°å ¥ãé²ãã¦ãã¾ãã æ°ããè¨èªã¨ãããã¨ã§ã¾ã ã¾ã æ¯ãã¦ããªãTypeScriptãªã®ã§ããã2018å¹´ç¾å¨ãã¨ããããTypeScriptæ¸ããããªãã¨ããå ´é¢ã®ããã«ä½ãããã°è¯ãããã¾ã¨ãã¦ã¿ã¾ããã TypeScriptæ¬ä½ã¯2018å¹´8ææç¹ã§ãã¼ã¸ã§ã³3.
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}