Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
persona
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hexang 息壤平台
persona
Commits
8566330c
Commit
8566330c
authored
13 years ago
by
Lloyd Hilaiel
Browse files
Options
Downloads
Patches
Plain Diff
proposed server organization
parent
d11e875e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ORGANIZATION.md
+18
-0
18 additions, 0 deletions
ORGANIZATION.md
with
18 additions
and
0 deletions
ORGANIZATION.md
0 → 100644
+
18
−
0
View file @
8566330c
Several node.js servers are implemented in this repostiory, each is
implemented on top of the
[
express
](
http://expressjs.com
)
framework
and should obey roughly the following directory structure:
*
`var/`
- a demand created directory with ephemeral files generated
during the run (keys, logs, etc).
*
`static/`
- files served verbatim without any substitution nor server
side logic in them
*
`lib/`
- javascript modules.
*
`lib/app.js`
application "entry point", exposes a single function
`exports.setup`
that takes a handle to an express server as an argument and sets up routes
or associates middleware to it.
*
`views/`
- express views, served before
`static/`
(if present)
*
`tests/`
- tests written using
[
vows
](
http://vowsjs.org
)
*
`tests/run.js`
- a "run all" script to run all tests
*
`run.js`
- script to run a standalone (production) node.js server - typically bound
against a well known localhost port.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment