DBooks.org Frontend Documentation 1; Basic Directory Structure Description
Repository
https://github.com/feekayo/dbooks.org
Details
This document describes at full length the details of the frontend boilerplate for Dbooks.org in the repository added above.
This is the first piece of an hopefully evolving documentation journey. And this particular piece and is aimed at providing interested contributors an headstart into understanding the Architecture and Framework being used im developing the dbooks.org frontend.
Components
As shown above, there are five (5) folders and seven (7) files in the main directory of the repository. Of these 12 components we are mainly interested in three components.
- The app Folder
- The app.js File
- The package.json file.
On cloning the Repository. Run
npm install
On command line, to install all the node dependencies from the package.json. Then Run
node app.js
On your local device, to get the server up and running.
The app folder is where most of the magic happens.
It contains six (6) folders and four (4) files. The folders and files we are interested in right now include;
- The css folder:- Contains app.css; which is the primary stylesheet for the entire application
- The img folder:- Is meant to hold the general images of the application
- The js folder:- Holds five (5) files:
i. app.js:- Instantiates the app's dependencies and configurations
ii. controllers.js:- Contains general controllers for the application
iii. directives.js:- Contains general custom directives for the application
iv. services.js:- Contains general services for the application; including webAPI routes, domains and version services
v. filters.js:- Contains general custom filters for the application - The lib folder:- Contains certain offline app dependencies
- The modules folder:- It's to hold various app modules, to give the app a more modular architecture
- The index.html file:- Instantiates the application's scripts
A deeper look into the modules folder
The modules folder; for now has just one module; the main module. Which on selecting shows the general template for a module. Four (4) folders and a Module file.
These components include
- The css folder: contains {{modulename}}.css which would be the module specific stylesheet
- The img folder: contains module specific image files
- The js folder: contains
i. controller.js: module specific controllers
ii. directives.js: module specific controllers
iii. filters.js: module specific filters
iv. services.js: module specific services - The views folder: contains html views for the module
- The {{modulename}}Module.js file contains; a module instantiation and routes provides by the module, alongside general module configurations
In a subsequent post; I'll be explaining how to make use of this structure in creating new functionality for the currently mostly blank application.
Difference
N/A
Links
Official Documentation hosted on:
https://github.com/feekayo/dbooks.org/wiki/Basic-Folder-Description
Proof of Authorship
Leave DBooks.org Frontend Documentation 1; Basic Directory Structure Description to:
Read more #utopian-io posts
Best Posts From Fikayomi, Sanni
We have not curated any of feekayo's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Fikayomi, Sanni
- Huawei Mate 20 Pro - New Huawei Flagship Mate Phone
- Animoodles Collection 2 - Customizable toys to improve your child's creativity
- Intuitive EOS Development Methods 1: intro to Decentralized and Semi-Decentralized Methods
- The DBooks Project is Switching to EOS
- RESTful APIs with NodeJS 1. Getting Started with NodeJS
- RESTful APIs with NodeJS. An Introductory Course for Prospective DBooks Contributors
- DBooks Backed Documentation 2: Accounts and Create Resource Endpoints
- DBooks Frontend Task Request 1: Landing/Login Page
- DBooks.org Backend Documentation 1; Basic Directory Structure Description
- DBooks.org Frontend Documentation 1; Basic Directory Structure Description
- DBooks is Now on Utopian.io as an Open Source Project
- DBooks.org Goes Open Source; Contribute to Our Development
- Don't Freak Chapter 2: Lunar bars
- Another Text Book Chapter 2: undefined
- Don't Freak Chapter 1: Let's do this
- How to Grow Your STEEMIT Account Book Review
- A Test Book for Testing New Features Prologue
- A Random Book Chapter 2: Still ignore
- A Random Book Chapter 1: Ignore please, test post
- Random Book Chapter 1: Test Post