• p4_908754
    了解作者
  • 9.4MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-06 04:58
    上传日期
该项目是通过引导的。 和 Redux Node.js / Express MongoDB /猫鼬 酶/开玩笑 JWT / bcryptjs / passport CSA盒子生成器是一款应用程序,可让农场企业为客户提供机会为其每周的每份股票设置首选项。 CSA代表社区支持农业,是守法者向农民提供季前启动费用的一种方式。 为了换取他们的投资,客户每周获得农场产品的份额。 该应用程序允许客户选择他们想每周接收的蔬菜。 在此处查看应用程序: 使用用户名“ demo”和密码“ password88”登录。 代码架构: App组件是此应用程序的根组件。 前端身份验证在RegistrationPage和LandigPage组件中处理。 仪表板组件处理日期选择,而BoxPage处理单个蔬菜选择。 后端身份验证是通过用户和auth路由器的auth /策略来处理的。 数据库中有两个集合。 蔬菜
sonya-csa-client-master.zip
  • sonya-csa-client-master
  • package.json
    646B
  • screen-shots
  • register.png
    1.4MB
  • box-page.png
    1.5MB
  • adding-items.png
    1.5MB
  • dashboard.png
    1.5MB
  • login.png
    1.4MB
  • saved-box.png
    1.5MB
  • package-lock.json
    417.6KB
  • src
  • get-mondays.js
    0B
  • reducers
  • auth.js
    1.1KB
  • box.js
    4KB
  • vegetable.js
    518B
  • config.js
    98B
  • index.js
    455B
  • csa-box-img.jpg
    479.3KB
  • local-storage.js
    320B
  • registerServiceWorker.js
    4.3KB
  • setupTests.js
    153B
  • components
  • registration-page.test.js
    248B
  • requires-login.test.js
    234B
  • about-us.js
    2.2KB
  • app.test.js
    194B
  • login-form.test.js
    218B
  • input.js
    1.1KB
  • dashboard.test.js
    218B
  • date-selector.test.js
    231B
  • about-us.test.js
    478B
  • box-page.test.js
    290B
  • registration-form.js
    3KB
  • requires-login.js
    869B
  • nav.test.js
    1.4KB
  • landing-page.js
    694B
  • dashboard.js
    808B
  • nav.js
    1.6KB
  • box-page.js
    4.6KB
  • box-contents.test.js
    619B
  • box-contents.js
    2.7KB
  • login-form.js
    1.8KB
  • app.js
    1.8KB
  • date-selector.js
    2.2KB
  • landing-page.test.js
    226B
  • registration-page.js
    871B
  • registration-form.test.js
    246B
  • input.test.js
    202B
  • store.js
    757B
  • actions
  • auth.js
    3.2KB
  • utils.js
    847B
  • users.js
    817B
  • vegetables.js
    881B
  • boxes.js
    3.6KB
  • validators.js
    729B
  • mondays.js
    649B
  • index.css
    3.4KB
  • .gitignore
    285B
  • notes.txt
    180B
  • public
  • manifest.json
    317B
  • index.html
    1.7KB
  • favicon.ico
    3.8KB
  • README.md
    1.6KB
内容介绍
This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app). and - Redux - Node.js/Express - MongoDB/Mongoose - Enzyme/Jest - JWT/bcryptjs/passport The CSA box builder is an app to enable a farm business to provide their customers with the opportunity to set preferences for each of their weekly shares. CSA stands for Community Supported Agriculture and is a way for cusotmers to provide the farmer with her preseason start up costs. In exchange for their investment, the customer gets a weekly share of the farm's produce. This app allows the customer to select what vegetables they would like to recieve each week. See the app here: Use username 'demo' and password 'password88' to login. https://csa-box-builder.herokuapp.com/ ![Login Page](./screen-shots/login.png) ![Dashboard](./screen-shots/dashboard.png) ![Box Page](./screen-shots/adding-items.png) Code architecture: The App component is the root component for this app. Front-end authenitcation is handled in the RegistrationPage and LandigPage components. The Dashboard component handles the date selection and the BoxPage handles the individual vegetable selection. Backend authentication is handled by with the auth/strategies through the user and auth routers. There are two collections in the database. The vegetable collection is controlled by the admin and is not accessible to the user. It contains all the vegetable options available to the customer. The box collection contains saved box information for each user. Frontend tests are run with Enzyme. Each component has a corresponding test file.
评论
    相关推荐