【文件属性】:
文件名称:这个或那个:这个或那个-使用AWS Amplify构建的实时原子投票应用程序
文件大小:817KB
文件格式:ZIP
更新时间:2021-01-30 17:40:22
react javascript graphql aws serverless
这个或那个
可扩展的无服务器投票应用程序-使用AWS Amplify,AWS AppSync和Amazon DynamoDB构建
部署
您可以通过以下两种方式之一来部署此应用程序和后端基础结构:
放大CLI
一键部署按钮
放大CLI
首先安装并配置Amplify CLI。
有关如何配置CLI的完整演练,请参见此
$ npm install -g @aws-amplify/cli
$ amplify configure
克隆仓库,安装依赖项
$ git clone https://github.com/dabit3/this-or-that.git
$ cd this-or-that
$ npm install
初始化应用
$ amplify init
? Enter a name for the environment: (your preferred env name)
? Choose your default editor: (your preferred editor)
? Do you want to use an AWS profile ? Yes
? Plea
【文件预览】:
this-or-that-master
----.gitignore(654B)
----README.md(2KB)
----.graphqlconfig.yml(402B)
----public()
--------manifest.json(492B)
--------robots.txt(67B)
--------logo192.png(5KB)
--------logo512.png(9KB)
--------index.html(2KB)
--------favicon.ico(7KB)
----thisorthat.jpg(106KB)
----amplify()
--------.config()
--------backend()
----package.json(1KB)
----src()
--------serviceWorker.js(5KB)
--------index.css(2KB)
--------Polls.js(5KB)
--------utils()
--------Candidates.js(7KB)
--------App.test.js(280B)
--------Poll.js(4KB)
--------gql()
--------Footer.js(157B)
--------CreatePoll.js(8KB)
--------App.css(563B)
--------graphql()
--------Header.js(1KB)
--------Router.js(838B)
--------index.js(826B)
--------setupTests.js(255B)
--------assets()
--------logo.svg(3KB)
--------Button.js(926B)
--------actionTypes.js(125B)
----postcss.config.js(157B)
----tailwind.js(17KB)
----yarn.lock(530KB)
----package-lock.json(669KB)