Questions tagged [directory-structure]

Inquiries concerning the structuring of files and folders within a file system.

How to reference an image located in one folder from a page in a different folder using React

Imagine there is Folder A containing an image called 'image.jpg' and Folder B with an HTML page that needs to access the image in Folder A in order to display it. The following code successfully accomplishes this task: <img src={require(&apo ...

Having trouble loading @font-face fonts

I am experiencing an issue where my downloaded fonts are not showing up in Chrome. I am utilizing scss which gets compiled to css using gulp. If I directly visit http://project-name.localhost/data/fnt/Shermlock.ttf I can successfully download the font. ...

Arrangement of gaming activities within a fast-paced express.js application

Operating a server hosting multiple multiplayer web games utilizing Node.js+Express.js can be quite the task. The current setup involves a standard folder structure, with Jade files stored under "views", client-side Javascript files tucked away in "public/ ...

Best practices for organizing fonts in SCSS 7-1 architecture?

My current project restructuring involves implementing the 7-1 architecture recommended by . As part of this process, I am incorporating flaticons into my project. I'm unsure of where to place the folder and scss file provided by flaticon within the archi ...

Tips for incorporating a configuration file into various directories on PHP pages

I have a specific folder arrangement in my project where I keep the Init.php file within the core directory. My goal is to automatically load all classes from the classes folder by including this file on every page within the views folder. However, when I ...

Is it necessary to bring in CSS for the following page?

Should CSS be imported and used across multiple pages in a web application? Is the page structure outlined below considered acceptable, or is there a standard practice to follow? /pages /home index.js index.module.css /cart ...

Creating a centralized controllers folder for a yii2 project

I am looking to integrate a shared controller directory into my Yii2 project. Inside my frontend/config/main.php file, I have the following setting: 'controllerNamespace' => 'frontend\controllers', My goal is to include both ...