Skip to Content
全栈Serverless
book

全栈Serverless

by Nader Dabit
March 2022
Intermediate to advanced
205 pages
3h 9m
Chinese
China Electric Power Press Ltd.
Content preview from 全栈Serverless
创建你的第一款应用
|
47
尽管有很多方法可以实现
GraphQL
服务器,但在本书中我们将使用
AWS
AppSync
。
AppSync
是一项托管服务,它可以让我们通过
Amplify CLI
轻松地
部署
GraphQL API
,解析器和数据源。
3.2
创建
GraphQL API
现在你已经对
GraphQL
有了一些基本的了解,接下来让我们使用它来构建笔
记应用程序。
你需要做的第一件事情是创建一个新的
React
应用程序并安装必要的依赖项。
此应用程序将采用
AWS Amplify
库与
API
交互,采用
uuid
库创建唯一
ID
以
及
Ant Design
库进行样式设置:
~ npx create-react-app notesapp
~ cd notesapp
~ npm install aws-amplify antd uuid
然后在新的应用程序根目录下,你可以创建
Amplify
项目:
~ amplify init
? Enter a name for the project: notesapp
? Enter a name for the environment: dev
? Choose your default editor: <your editor of choice>
? Choose the type of app that you're building: javascript
? What javascript framework are you using: react
? Source Directory ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
Python实用技能学习指南

Python实用技能学习指南

Posts & Telecom Press, Robert Smallshire, Austin Bingham
流架构

流架构

James Urquhart

Publisher Resources

ISBN: 9787519864453