- React 16 Essentials(Second Edition)
- Artemij Fedosejev Adam Boduch
- 171字
- 2021-07-02 22:25:19
Creating the project structure
Now it's time to create our project structure. Organizing source files may sound like a simple task, but a well-thought-out project structure organization helps us understand the underlying architecture of our application. You'll see an example of this later in this book, when we'll talk about the Flux application architecture. Let's start by creating our root project directory named snapterest
inside your home directory ~/snapterest/
.
Then, inside it, we will create two other directories:
~/snapterest/source/
: Here, we'll store our source JavaScript files~/snapterest/build/
: Here, we'll put compiled JavaScript files and an HTML file
Now, inside ~/snapterest/source/
, create the components/
folder so that your project structure would look like this:
~/snapterest/source/components/
~/snapterest/build/
Now when we have our fundamental project structure ready, let's start populating it with our application files. First, we need to create our main application file app.js
in the ~/snapterest/source/
directory. This file will be the entry point to our application, ~/snapterest/source/app.js
.
Leave it empty for now, as we have a more pressing matter to discuss.
- Embedded Linux Projects Using Yocto Project Cookbook
- ASP.NET MVC4框架揭秘
- Getting Started with ResearchKit
- Learning Chef
- 華為HMS生態與應用開發實戰
- Learning Firefox OS Application Development
- 從Excel到Python:用Python輕松處理Excel數據(第2版)
- LabVIEW虛擬儀器程序設計從入門到精通(第二版)
- Python爬蟲、數據分析與可視化:工具詳解與案例實戰
- C++編程兵書
- Arduino Wearable Projects
- 快樂編程:青少年思維訓練
- 零基礎學SQL(升級版)
- Learning Alfresco Web Scripts
- Java EE輕量級解決方案:S2SH