Comments (1)
I have 3 sources of inspiration on how to organize code. FW/1, Ruby on Rails, and Bootstrap.
FW/1
FW/1 is a MVC (model, view, controller) framework.
Models are further subdivided into beans
(transients) and services
(singletons).
HTML generation is divided into views
, which happen early in request process and layouts
which happen late in the request process
FW/1 Controllers are straight forward. Unlike ColdBox all variables are in the rc
scope.
Ruby on Rails
Ruby on Rails provides a different set of inspiration. When a Ruby on Rails website is setup, all kinds of directories are created along with it. I have taken the most interesting and added them to the FW/1 mix. These directories are
controllers/concerns
for re-used functions in various controllers
model/beans/concerns/
for re-used functions in various beans
model/services/concerns/
for re-used functions in various service
This application is so small, it does not have anything that would fall into those categories, but I like that there is a place for them.
vendor
is used for all CSS, Fonts, and JS from 3rd parties.
These are considered to be static. For there is a CSS or JS file that will be altered, then it belongs in assets.
Bootstrap
Bootstrap is not free form its structure. The path for its fonts must be ../fonts/
For this reason vendor/fonts
must exist.
from palomar.
Related Issues (17)
- Login button HOT 1
- Security HOT 1
- Format of communication HOT 1
- SQL HOT 1
- Testing HOT 1
- If he hashes passwords. HOT 1
- Frameworks HOT 1
- ORM HOT 1
- HTML libs HOT 1
- Authentication UX HOT 1
- On logout HOT 1
- No Page Refreshes HOT 1
- DB Storage HOT 1
- HTML Structuring HOT 1
- JS Structure HOT 1
- CF Backend Services HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from palomar.