Express ? Netlify? ???? Node?? Serverless GraphQL API ??
Apr 04, 2025 am 10:12 AMAPI? ???? ?? ??? ?? ? ??? ?? ??? ????. ? ???? ???? ??? ?? ??? ??? ??? ???? ? ?? ?? ???? ?? ?? API? ???? ???? ??? ?????. ???? ??? ??? ???? ????. JavaScript? NPM? ?? ???? ??? ?????.
? ???? REST? ?? ???? API ??? ???? GraphQL ? Serverless Architectures? ?????. ??? ?? ??? ??? ??? ???? ? ?? ?? ??? ??? ?????. ??, ?? ?? ???? ?? ? API? ????.
?? ?? : GraphQL ? Serverless
API? ????? ???? ?? ?????? ?? ?????. REST API? URL? ???? ??? ??? ???? ???? ??? ??? ??? ?? ?? ??? ?????. GraphQL? ?????? ?? ??? ??? ??? ???? ??? ? ????? ???? ??????. ??? ??? ???? ???? ??? ?? ?? ??????.
???? ????? ?? ??? ???? ????. ?? ? ?? ??? ????? ?? ? ??? ???? ??? ?????. ? ???? ??? ?? NetLify ??? ???????.
?? ??
Node.js ? Express : Node.js? ?? ? JavaScript ??? ???? ??, Express? ??? ? ????? ?? ???? API ??? ??????.
NETLIFY ?? : ?? ?? ? ?? ????? ???? ???? ???. Netlify Dev? ?? ???? ?????.
???? ??
? ???? ????? ????
npm init
? ???????.??? ??? ?? :
npm i express express-graphql graphql body-parser serverless-http netlify-cli -g
?? ?? ? ??
-
netlify.toml
: ?? ? ????? NetLify? ?????. ????? ???? ??? ??? ???????.
[??] ?? = "NPM ?? ??" ?? = "??" ?? = "??"
-
/functions/api.js
: API ??? ?????.
api.js
?? ??
- ?? ??? :
const express = ?? ?? ( "Express"); const bodyparser = ?? ?? ( "Body-Parser"); const expressgraphql = ?? ?? ( "Express-GraphQL"); const serverless = require ( "serverless-http"); const {GraphQLSchema, GraphQLobjectType, GraphQlString} = require ( "GraphQL");
- Express ? Serverless ?? ??? :
const app = express (); module.exports.handler = Serverless (App);
- Express Middleware ?? :
app.use (bodyparser.json ()); app.use ( "/", expressgraphql ({schema : schema, graphiql : true}));
- ??? QL ??? ?? :
const schema = new GraphQlschema ({ ?? : ??? GraphQlobjectType ({ ?? : "HelloWorld", ?? : () => ({{ ???: { ?? : GraphQlstring, ?? : () => "Hello World", }, }), }), });
?? ?? ? ???
????? netlify dev
??????. http://localhost:8888/.netlify/functions/api
?? graphiql ???? ???????. { message }
? ???? API? ???????.
??
?? ??? ?? ????? NetLify (? : GitHub)? ??????. NetLify? ???? ??? ???? ?????.
?? ?? : ????? ?????
???? ???? _redirects
??? ???? /api
?? NetLify ??? ??? ????????.
<code>/api /.netlify/functions/api 200!</code>
??? API ???? ??????.
??
? ????? ???? ??? QL API? ?? ???? ?????? ??? ?????. ?? ??? ?? ???? ??? ???? ??? API ??? ???????. DraphQL ? Serverless Technologies ?? ? ?? ?????? ??? ???? ???????. ?? ?? ??? GitHub (?? ??? ??? ??)?? ??? ? ????.
? ??? Express ? Netlify? ???? Node?? Serverless GraphQL API ??? ?? ?????. ??? ??? 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)

??? ??











CSS? ??? ??? ????? ????? ??? ? ?? CSS? ????? ?? ??????, ?? ?? ? ??? ??, ??? ?? ?? ??? CSS ? ????? ?? ??? ?? ???? ???? ??? ??? ???. 1. ?? CSS? ???? HTML? ?? ?????. 2. JavaScript? ?? ??? CSS ??; 3. ??? ??? ???? ?? ???? ????? ??????. 4. CSS? ???? ???? ??? ????. ?? CSS? ???? ?? ??? ???? Rel = "Preload"?????? ????, ??? ?? ??? ????? ???? ??? ?? ? ??? ???? ??? ?????.

TheBestoproachforcssdspectionseproject'sspecificneeds.forlargerProjects, externalcsSisbetterduetomainabainabainabilitableability ? forsmallerprojectsorsingle-pageapplications, ?? csmightbemoresuitable.it 'scrucialtobalanceprojectsize, ??

???, cssdoesnothavetobeInlowercase. ???, lowercaseisRecomedended for : 1) ??? ? ??, 2) ??? ?? rorsinerrorsinerrorsIngerRorsIngerRorsInteChnologies, 3) ??? ?? ??, ? 4) ?? ? ???? ????.

cssismostlycase-Insensitive, buturlsandfamilynamesarecase-insensitive.1) propertiesandvalueslikecolor : red; anteOtcase-inditive.2) urlsmustmatchtheserver'scase, ?? ??,/images/logo.png.3) fontfamilynames'opens'mustoccase.

AutoPrefixer? ?? ???? ??? ???? ?? ?? ???? CSS ??? ???? ???? ?????. 1. ????? ???? ???? ???? ??? ?????. 2. PostCSS ???? ??, CSS? ?? ???? ???? ?? ???? ??? ???? ??? ?? ??? ?????. 3. ?? ???? ???? ??, ??????? ?? ? ?? ???????? ????? ?? ?????. 4. ???? ???? ???? ???? ?? ?? ????, ???? ?? ??? ?? ???? ???? ????? ?? ???? ?? ????.

CSSCOUNTERSCANAUTOMALLYNUMBERSESSESSENDS.1) USECOUNTER-RESETTIONITIALIZE, CORKENT-INCREMENTTOINCERES, andCOUNTER () ORCOUNTERS () TODISPLAYVALUES.2) COMPINEWITHJAVAISCRIPTORDINAMICCONTENTTOEREACCUTERUPDATES.

CSS?? ??? ? ?? ??? ?? ??? ???? ??, ??, URL ? ??? ?? ????? ?? ?? ??? ?????. 1. ???? ?? ??? ??? ? ???? ?? ?? ??? ??????. 2. ?? 16 ?? ??? ?? ??? ?????, ??? ???? ???? ?? ??? ??? ???? ????. 3. URL? ??? ???? ???? ??? ??? ? ????. 4. ??? ?? ?? (??)? ??? ???? ??? ? ???? ??????? ???????.

theconic-gradient () functionincsscreatescurcular gradientsthattroTecolorstopsaroundacentral point
