?? ????? AWS Lambda ??? ?? ?????. ??? ?? ???? ??? ?? ? AWS ???? ???? ?? ??? ? ????. ??? ?? ??? ?? ? ? ??? ???? Lambda ??? ?? ? ??????? ???? ????? ?????.
???? ??? ???? ????? ??? ??????. ??, ?? ? ?? ??? ?? Lambda ??? ? ?? ????? ???? ?? ??????. ? ??? ??? ???? ?????? ??? ??? ?? ??? ??? ???. ? ??? Serverless? ???? ??? ???? ?? ??? ??? ?? ????? ????. Lambda? ?? ???? ?? ??? AWS ?? ???? ??????.
Quick Start Guide? ?? ?? ? ??? ?? ??? ??? ?????. ???? AWS ??? ???????? 5-10 ? ??? ???????.
? ?? ???? ???
?? ??? ? S3 ??? ?? ?? ???? ????? ?? ?? Lambda ??? ??? HTTP ?? ???? ???? ?? ? ?? ?????? ???????. ? ??? ??? ??? ???? ??? ???? ??? ??? ?? ???? ????? ?????.
???? ???? ??????. ? ???????? ( create-react-app
???? ?? ??? ?? ???? ?? ?????) ???? ?? ???? (? : lambda
??)? ??????. ??? ?? ????? ???? ??????.
SLS? -t aws-nodejs-path hello-world? ?????
??? hello-world
????? ????. ??? ?? ?????.
handler.js
?? ???? ???? ??? ??? ???? ????. sls deploy
???? ??? Lambda ??? ???? ?? ? ? ????. ??? ?? ?? ?? ??? ? ? ????????.
?? AWS ???? AWS API ????? ?? ??? ? ????? ?? ? ?? Lambda? ???? ???????. ????? ???? ?? ??? ?? ?? ?????.
??? hello-world
????, Open serverless.yaml
? ????.
?? ???? ?? ????? ??? ????? ???? ????. http ??? ??????? ???? ??? ?????.
?? : ?????: ??? : handler.hello ??? : -HTTP : ?? : MSG ?? : ?????
?? ??. ????? ?? ???? ?????.
CORS ??
Fetch API? ???? ??? ?? JavaScript?? ??? ????? CORS ??? ?????. ? ??? ????? ???? ?????.
cors: true
:
?? : ?????: ??? : handler.hello ??? : -HTTP : ?? : MSG ?? : ????? Cors : ??
?? API ?? ????? CORS? ???? ?? ??? ??? ???????.
Cors Lambda ??
HTTP ?? ???? Cors ????? Lambda ??? ??? ??? ???????. handler.js
???? ??? ??????.
const corsresponse = obj => ({{ ?? ?? : 200, ?? : { "??? ??-??-???": "*", "??? ?? ?? ??": "*", "??? ?? ?? ??": "*" }, ?? : json.stringify (obj) }); module.exports.hello = async event => { CorsResponse? ????? ( "?????, ??!"); };
?? Lambda ??? ???? ??? ?? ?????.
Lambda ??? ????? hello-world
?????? sls deploy
??????.
sls info
??? ??? URL? ???? AWS ???? ???? ?? ??? ????. URL? ??? ????.
<code>https://6xpmc3g0ch.execute-api.us-east-1.amazonaws.com/dev/msg</code>
??? ?????
?? Fetch? ???? ? ?? ?????? ??? ???????.
fetch ( "https://6xpmc3g0ch.execute-api.us-east-1.amazonaws.com/dev/msg") . ??? (resp => resp.json ()) . ??? (resp => { Console.log (resp); });
???? ????? ??? ??? ???????.
? ??? ?????? ???? ??? ??? ??? : ???? ??? ???? S3 ??? ????? ??. S3 ???? ????? ?? ???? Lambda? ?? ????? ????? ? AWS SDK ???? ???? ????.
???? ?? ??
??? ??? (? : cover-art
)? ??? ??? :
SLS? -t aws-nodejs-path cover-art? ?????
HTTP ?? ??? ??? ???? (?? ???? ??? ???) CORS? ???????.
??? : -HTTP : ?? : ??? ?? : ??? Cors : ??
serverless.yaml
?? iamRoleStatements
??? ????? ???? S3 ??? Lambda ??? ??? ??????.
iamrolestatements : - ?? : "??" ??: - "S3 :*" ?? : [ "ARN : AWS : S3 ::: Your-Bucket-Name/*"]
API ?????? ???? multipart/form-data
?????.
???: ?? : aws ??? : nodejs12.x Apigateway : BinaryMediatypes : - '?? ??/?? ???'
upload
? serverless.yaml
? handler.js
?? ??? ??? ????.
?? ??
?? ??? ?? :
npm i jimp uuid lambda-multipart-parser
S3 ??? ?? ??? handler.js
? ?? ??? ??? ?????? (?? ??? ??? ?????? ?? ?????? ?? ?????? ??? ? ????).
????? ??? react-dropzone
? ?? ?????? ???? ?? ???? ?????? (?? ????? ??? ?? ?).
?? ?? : ???
?? ???? ?? ??? ??? ??? ??????. serverless-webpack
?? :
NPM I ???? ??? ?-?? ??
serverless.yaml
? ?????? :
???? : -Serverless-Webpack
webpack.config.js
(?? ????? ??? ??)? ??????. WebPack? ???? ?? ???????.
??
Serverless ??? ??? AWS Lambda ??? ?? ? ??? ?? ??????. ? ??? ? ??? ??? ?????? ??? ?????. ?? ????? ?? ? ???? ? ?? ????? ??? ?? ??? ?????.
? ??? AWS Lambda ???? ? ???? ???? ?????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

themaindifferencesbetweendisplay : ???, ??, andinline-blockinhtml/cssarelayoutbehavior, spaceusage ? stylingcontrol.1.inlineElementsFlowWithText, do n'tStartonnewlines, ingorewidth/height, andonlyapplyhorizontalpadding/margins —IdealforIneTeTexting

??? ?? ???? ???? ??? ??, ?? ??? ??? ? ? ????? ??? ??? ???? ???? ? ? ?? ? ? ????. 1. CSS ?? : ?? ??? ???? ???? ?? ??; 2. ????? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 3. ?? ??? ??? ??? ??? ?? ?? ???? ????????. 4. ??? ????? ??? ???? ?? ? ??? ??? ?? ??? ?? ?? ??? ????? ???? ?? ????.

CSS? ?? ?? ??? ??? ??? ???? ???? SVG? ???? ?? ???, ?? ????, ??? ?? ?? ??? ?? ???? ??????. ??? ??? ????. 1. ?, ??, ??? ?? ?? ??? ?? ??? ?????. 2. ?? ?? ? ??? ???? ??? ? ????. 3. ?????? ?? ?? ?? ?? ????? ???? ?? ??? ?? ? ? ????. 4. ???? ???? ??? ??? ??? ????? ?? ? ??? ????. ???? ???? ?? ?? ?? : ? (50pxatcenter) ? ??? ?? ?? : ??? (50%0%, 100 0%, 0%)? ?? ????. ????

CSS? ???? ?? ? ???? ???? ??? ?? ??? ?? ?? ?? ? ? ????. 1. Max width : 100% ? ?? : Auto? ???? ???? ??? ????? ???? ??? ??? ? ??????. 2. HTML? SRCSET ? ?? ??? ???? ?? ??? ??? ??? ??? ???????????. 3. ?? ?? ? ?? ??? ???? ??? ??? ? ?? ?????? ??????. ? ??? ?? ???? ?? ???? ???? ???? ????????.

?? ????? CSS ?? ??? ????? ?? ?? ??? ??, ?? ?? ?? ??, Flexbox ? ??? ???? ?? ?? ? ?? CSS ??? ????? ??? ???? ???? ?? ????? ??? ?????. 1. ?? ??? ??? ???? ????. ???? CSSRESET ?? NALLER.CSS? ???? ?? ???? ???? ????. 2. IE? ?? ??? ?? ?? ?? ??? ????. ?? ?? : ?? ? ???? ??? ??? ???? ?? ????. 3. Flexbox ? Grid? Edge Case ?? Old ???? ??? ?????. ? ?? ??? ? AutopRefixer ??; 4. ?? CSS ?? ??? ???? ????. Caniuse? ???? ?? ?????????.

CSS ??? ??? ?? ?? ?? ? ?? ? ?? ??? ?? ????. 1.px? ?? ??? ????? ?? ??? ??? ?? ??? ?????. 2.EM? ?? ????, ?? ?? ??? ??? ?? ?? ???? ??, REM? ?? ??? ???? ? ????? ??? ????? ?????. 3.VW/VH? ?? ? ???? ??? ??? ??? ??????? ?? ???? ?????? ???????. 4. ??? ?? ?? ? ??, ?? ?? ?? ? ??? ???? ???? ???????. ???? ??? ???? ??? ? ?? ??? ???? ? ????.

????? CSS? ???? ??? ?? ???? ???? ????, ?? 0 (??? ??)?? 1 (??? ???)???. 1. ??? ?? ??? ??? ???? ???? ??? ???? ??? ??? ??????. 2. ??? ???? ??????? ?? ??? ??? ???; 3. ??? ??? ?? ?? ?? ???? ??? ???. ??? ?? ???? ??? ??? RGBA? ?? ?? ?? ??? ??? ????. ???? ???? ?????? ?? ? ? ??? ?? ???? ??? ??? ? ? ????. ?? ?? ?? ??? ?? ???? ?? ????. ????? ????? ???? ??? ?? ? ?? ??? ???? ? ??? ????? ??? ??????.

Accent-Color? CSS?? ???, ??? ?? ? ????? ?? ?? ??? ????? ??? ??? ???? ? ???? ?????. 1. ???? ??? ?? ??? ????? ???? ?? ?? ?? ???? ??? ??? ?? ??? ?? ?????. 2. ???? ??? type = "checkbox", type = "radio"? type = "range"? ?? ??? ?????. 3. Accent-Color? ???? ??? ??? ???? ?? DOM ??? ??? ?? ???? ??? ? ????. 4. ????? ??? ?????? ???? ??? ????? ?? ?????????. 5. Accent-col? ??????
