- Progressive Web Apps with React
- Scott Domes
- 185字
- 2021-07-08 09:36:15
Project initiation
The next thing we need to do is initiate our application as an npm project. Let's try it out, and then we'll discuss why we needed to do so:
- Inside your project folder, in your terminal, type yarn init and hit enter.
- It’ll ask you a series of questions. The first one is the most important--the name of our application. It should just take the name of the current folder (chatastrophe). If it doesn't, just enter chatastrophe. From there, just hit enter to skip the rest of the questions, accepting the default answers. These questions would matter more if we were planning on publishing our own package, but we're not, so no worries!
- If you take a look at your project folder after completing the yarn init, you'll notice that it added a package.json file with our project name and version. Our package.json is important, in that it will act as a list of our dependencies--the package we will install via yarn.
Enough talking about dependencies, though, let's install our first one! What better choice than to install React?
推薦閱讀
- 多媒體CAI課件設計與制作導論(第二版)
- Flink SQL與DataStream入門、進階與實戰
- 算法精粹:經典計算機科學問題的Java實現
- C#程序設計(慕課版)
- Visual Basic程序設計習題解答與上機指導
- Mastering Yii
- Python機器學習實戰
- 手把手教你學C語言
- Mastering Android Development with Kotlin
- LabVIEW虛擬儀器入門與測控應用100例
- 用案例學Java Web整合開發
- 計算機應用基礎教程(Windows 7+Office 2010)
- Python入門很輕松(微課超值版)
- Training Systems Using Python Statistical Modeling
- PHP+MySQL動態網站開發從入門到精通(視頻教學版)