Meteor 是一個 full-stack 的開發框架 (或者該說是平台),它可以利用一種語言 (JavaScript) 來輕鬆完成前後端的開發。是目前前景看好的選擇。
本階段的目標是:
- 了解 Meteor 是什麼樣的平台,基本架構,可以做到什麼樣的事情 (2.5 hr)
- 能夠自己獨立完成一個 Meteor 的 ToDo App (不斷的練習一樣的 App,直到完全熟悉,+10 hr)
這階段大約花 10-20 hr,可以利用一個週末的兩天時間,或是一個禮拜的晚上來完成。
pipelines: | |
branches: | |
master: | |
- step: | |
name: Build static html files | |
image: node:8.9.4-slim | |
caches: | |
- node | |
script: | |
- npm install |
import React from 'react'; | |
jest.mock('react-native', () => { | |
const createMockComponent = (name) => { | |
const mockedComponent = ({ children }) => ( | |
<div>{children}</div> | |
); | |
mockedComponent.displayName = name; | |
return mockedComponent; | |
} |
<?php | |
namespace App\Services; | |
use App\Post; | |
class Slug | |
{ | |
/** | |
* @param $title |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
/* global ReactRedux, Redux, ReactDOM */ | |
// "Getting Started with Redux" (by Dan Abramov) | |
// https://egghead.io/series/getting-started-with-redux | |
// This file on JSBin (by Jesse Buchanan): | |
// http://jsbin.com/wuwezo/74/edit?js,console,output | |
//////////////////////////////////////////////// | |
// |
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| EmailExampleTest | |
|-------------------------------------------------------------------------- | |
| | |
| Email test case for testing emails with Mailtrap.io in Phpunit | |
| | |
| Requirements: | |
| - Laravel 5.1 |
// Allows: | |
// funkyParser() | |
module.exports = function createFunkyParser(opt) { | |
return new FunkyParser(opt) | |
} | |
function FunkyParser(opt) { | |
// make params optional | |
opt = opt || {} |
<?php | |
use Swagger\Annotations as SWG; | |
/** | |
* @SWG\Swagger( | |
* basePath="/v1", | |
* host="api.local", | |
* schemes={"http"}, | |
* produces={"application/json"}, |