vocabgiant_com:本书“ Easy React”的同伴项目

  • E9_902308
    了解作者
  • 863.3KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-15 08:53
    上传日期
VocabGiant 该存储库维护着即将出版的书“ Easy React:使用现代JavaScript技术构建强大的Web应用程序”( )的VocabGiant配套项目。 作为一个Git仓库,您需要至少具备基本的Git技能才能充分利用这些示例。 如果您不熟悉Git,建议您看一下Scott Chacon的精彩著作(免费在线获得)“ ”,以及Neo出色的在线“ ”课程。 在了解有关这本书的更多信息。 您可以免费下载简介和第一章! 安装VocabGiant VocabGiant利用了许多不同的技术,包括 , , , , , , , 等。 它旨在为React和现代JavaScript的相对新手提供一个明智的示例,说明所有这些引人入胜的技术如何协同工作以创建可运行的应用程序。 要在本地运行VocabGiant,请克隆存储库,然后安装依赖项: $ npm install
vocabgiant_com-master.zip
  • vocabgiant_com-master
  • .gitignore
    25B
  • .eslintrc
    1KB
  • package.json
    1.7KB
  • src
  • components
  • Review.jsx
    1.1KB
  • Item.jsx
    666B
  • List.jsx
    1.5KB
  • About.jsx
    557B
  • QuizItem.jsx
    1.3KB
  • Search.jsx
    688B
  • App.jsx
    1.7KB
  • Lists.jsx
    1.2KB
  • Quiz.jsx
    1.4KB
  • css
  • application.less
    1.1KB
  • App.jsx
    1.2KB
  • actions
  • ListActions.js
    720B
  • QuizActions.js
    132B
  • stores
  • QuizStore.js
    550B
  • ListsStore.js
    1.1KB
  • LICENSE.md
    1.1KB
  • gulpfile.js
    1.2KB
  • build
  • app.js
    609.7KB
  • public
  • app.js
    3.2MB
  • css
  • application.css
    143.8KB
  • imgs
  • favicon.ico
    4.2KB
  • index.html
    600B
  • __tests__
  • List-test.js
    206B
  • README.md
    3.8KB
  • database
  • models
  • List.js
    451B
  • seeds
  • seeds.js
    5.3KB
  • server.js
    1.1KB
内容介绍
# VocabGiant This repository maintains the VocabGiant companion project to the forthcoming book, "Easy React: Build Powerful Web Apps Using Modern JavaScript Technologies" ([http://easyreactbook.com](http://easyreactbook.com)). Being a Git repository, you'll need to possess at least rudimentary Git skills to make the most of these examples. If you're not familiar with Git I suggest having a look Scott Chacon's great book (available for free online), "[Pro Git](https://git-scm.com/book)", in addition to Neo's fantastic online "[Git Immersion](http://gitimmersion.com/)" course. Learn more about the book at [http://easyreactbook.com](http://easyreactbook.com). You can download the introduction and first chapter for free! ## Installing VocabGiant VocabGiant takes advantage of many different technologies, including [React](https://facebook.github.io/react/), [Babel](https://babeljs.io/), [Reflux](https://github.com/spoike/refluxjs), [MongoDB](https://www.mongodb.org/), [Mongoose](http://mongoosejs.com/), [Superagent](https://github.com/visionmedia/superagent), [Gulp](http://gulpjs.com/), [ESLint](http://eslint.org/), and others. It is intended to provide relative newcomers to React and modern JavaScript alike with a sane example of how all of these fascinating technologies work together to create a working application. To run VocabGiant locally, clone the repository and then install the dependencies: $ npm install Next, create a local MongoDB database (named whatever you please), and then create an environment variable named `MONGOLAB_URI`, assigning the variable your MongoDB connection string. For instance here is what I've added to my `.bash_profile`: export MONGOLAB_URI=mongodb://localhost/dev_vocabgiant_com If you have a look inside `server.js` you'll see this `MONGOLAB_URI` environment variable is used to connect to MongoDB. Next import the database seeds into your newly created database: $ mongo localhost/dev_vocabgiant_com database/seeds/seeds.js Finally, boot the application: $ node server You'll also want to begin watching your application using Gulp so the JS can be recompiled on the fly: $ gulp watch Finally, keep in mind parts of this app are currently broken! This is very much a prototype, and I'm furiously adding new features to it while writing the book. I didn't want to wait for perfection to release it, since I figured quite a few interested developers could begin learning at least something from it now. ## The TODO List This is the "I am embarrassed to release this" release. Heck, I haven't even started tagging it yet. Currently you'll find it contains a few example lists, and you can use the sweet swipe feature to review a list, and that's about it. I'm planning on incorporating *a ton* of cool new features over the next few weeks, including: * **Quizzes**: This feature is the most pressing priority. Users will be quizzed on their list comprehension, and the app will track scores in real-time. * **User Accounts**: Users will be able to create accounts and manage their own vocabulary lists. * **Administration Interface**: An administrator will be able to add lists and do other administrative stuff. * **Eye Candy and Other Interactive Features**: Because we like getting all whizbangy and stuff. ## Demo A (slow) Heroku-hosted demo is currently available at [http://blooming-temple-4225.herokuapp.com/](http://blooming-temple-4225.herokuapp.com/). Over the next few days I'll migrate it to the VocabGiant.com URL and ensure it has proper resources to run responsively. Keep in mind parts of this demo are broken. :-) Also, it's optimized for phones, so it looks weird on a desktop. ## Questions? Found a bug in the book or repository, or have a question? Pull requests and e-mails welcome. Contact the author W. Jason Gilmore at wj@wjgilmore.com. ## License Licensed under the MIT. See LICENSE.md for all the glorious details.
评论
    相关推荐