概念

Web Scraping
Scrapy
Reguests
BeautifulSoup

閱讀全文 »

snippets

1
2
3
4
5
6
stle : StatelessWidget
stf : StatefulWidget
flo : floatingActionButton --> , value: FAB --> floatingActionButton

Ctrl+J : shwo quickly docs
Container/Row(option/Alt enter) : select widget(wrap widget), then chenge widget to SaftArea/Padding
閱讀全文 »

flutter doctor

1
flutter.bat doctor --verbose
閱讀全文 »

terminal

系統上已停用指令碼執行

閱讀全文 »

Install

Install Flutter SDK

set correct path : D:\app\src\flutter
閱讀全文 »

prepare source for deployment

ecommerce front add server.js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const express = require('express');
const compression = require('compression');
const path = require('path');
const app = express();

app.use(compression());
app.use(express.static(path.join(__dirname, 'build')));

app.get('*', function(req, res) {
res.sendFile(path.join(__dirname, 'build', 'index.html'));
});

const PORT = process.env.PORT || 3000;

app.listen(PORT, () => {
console.log(`App is running on port ${PORT}`);
});
閱讀全文 »