-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95c5e0a
commit 9a7805c
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### ExpressJS Components(most imp) | ||
- Request: builds a req object auto, gets populated with imp data such: methods, headers, etc. | ||
- Response: builds a res object which is a HTTP response that gets sent back to the user. Take care of proc req and conv text | ||
into appropriate format and then sends it back to client | ||
- Middleware: A function that gets called during Request-Response cycle and has access to resp and requ objects | ||
- Error Handling: Express comes prepackaged with error handling that will catch any sync/asynch error | ||
- Template: unopionated meaning I can use any templating language: ejs(embedded javascript), jade, etc. | ||
- DB: I can connect to any db using my ExpressJS app by loading the appropriate NodeJS driver for the DB | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters