- React.js Essentials
- Artemij Fedosejev
- 170字
- 2021-07-16 20:26:52
Creating the project structure
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.
- 軟件架構設計:大型網站技術架構與業(yè)務架構融合之道
- Django:Web Development with Python
- 大模型RAG實戰(zhàn):RAG原理、應用與系統(tǒng)構建
- 數據結構案例教程(C/C++版)
- RISC-V體系結構編程與實踐(第2版)
- 前端HTML+CSS修煉之道(視頻同步+直播)
- Geospatial Development By Example with Python
- 時空數據建模及其應用
- JavaScript動態(tài)網頁編程
- 軟件測試綜合技術
- 零基礎輕松學C++:青少年趣味編程(全彩版)
- Moodle 3 Administration(Third Edition)
- Mastering PowerCLI
- JavaScript前端開發(fā)基礎教程
- Web前端測試與集成:Jasmine/Selenium/Protractor/Jenkins的最佳實踐