39 lines
2.4 KiB
Markdown
39 lines
2.4 KiB
Markdown
|
---
|
|||
|
id: bd7158d8c443eddfaeb5bdef
|
|||
|
title: Build a Voting App
|
|||
|
challengeType: 4
|
|||
|
isRequired: true
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 建立一个投票应用程序
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description"> <strong>目标:</strong>构建一个功能类似于此的完整堆栈JavaScript应用程序: <a href="https://fcc-voting-arthow4n.herokuapp.com/" target="_blank">https</a> : <a href="https://fcc-voting-arthow4n.herokuapp.com/" target="_blank">//fcc-voting-arthow4n.herokuapp.com/</a>并将其部署到Heroku。请注意,对于每个项目,您应该创建一个新的GitHub存储库和一个新的Heroku项目。如果您不记得如何执行此操作,请重新访问<a href="/challenges/get-set-for-our-dynamic-web-application-projects">https://freecodecamp.com/challenges/get-set-for-our-dynamic-web-application-projects</a> 。以下是您应该为此项目实现的特定用户故事: <strong>用户故事:</strong>作为经过身份验证的用户,我可以保留我的民意调查,然后再回来访问它们。 <strong>用户故事:</strong>作为经过身份验证的用户,我可以与朋友分享我的民意调查。 <strong>用户故事:</strong>作为经过身份验证的用户,我可以看到我的民意调查的汇总结果。 <strong>用户故事:</strong>作为经过身份验证的用户,我可以删除我认为不再需要的民意调查。 <strong>用户故事:</strong>作为经过身份验证的用户,我可以创建包含任意数量项目的民意调查。 <strong>用户故事:</strong>作为未经身份验证或经过身份验证的用户,我可以查看并对每个人的民意调查进行投票。 <strong>用户故事:</strong>作为未经身份验证或经过身份验证的用户,我可以以图表形式查看民意调查的结果。 (这可以使用Chart.js或Google Charts实现。) <strong>用户故事:</strong>作为经过身份验证的用户,如果我不喜欢民意调查中的选项,我可以创建一个新选项。完成这些用户故事的实现后,单击“我已完成此挑战”按钮,然后输入GitHub存储库和在Heroku上运行的实时应用程序的URL。您可以通过Facebook上的朋友分享您的项目反馈。 </section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id="instructions">
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests: []
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|