-
Notifications
You must be signed in to change notification settings - Fork 1
App structure
Tyler Swayne edited this page Feb 6, 2021
·
5 revisions
Nexi has a semi opinionated structure. Below you can see a high level view of the folder/file layout and features:
- assets/ - this is the default static asset directory.
- migrations/ - contains your db migrations.
-
src/ - everything else in your application will fall into this directory. Having one top level "source code" directory makes it very easy to organize and find your application code without clutter or fragmentation.
-
config/ - application and startup configuration
- config.js
- boot.js - enables defining logic to run at startup
- error-reporter.js
- logger.js
- initializers/
-
app/ - this is where the core mvc pieces are housed.
- controllers/ - nexi will look here for controller/actions specified in routes - docs
- models/
-
views/
- helpers/
- layout/
- decorators/
-
middleware
- app/
- pre-request/
- post-request/
- routes.js - the router is the backbone of this framework and provides a wide range of functionality for handling application routing & middleware in a simple & clean manner - docs
-
config/ - application and startup configuration