expressjs / express Goto Github PK
View Code? Open in Web Editor NEWFast, unopinionated, minimalist web framework for node.
Home Page: https://expressjs.com
License: MIT License
Fast, unopinionated, minimalist web framework for node.
Home Page: https://expressjs.com
License: MIT License
Add some rendering hooks, only really needed
once we have ORM support so we can see what
is impacting performance
get(':filename.css', static) // something like this
addedRoute etc
use(MethodOverride, { param: '_method' })
when client accepts html
So Profiler can wrap leading / trailing triggers etc
and options like sinatra supports for raising errors, etc
No need to dink around with browser discrepancies here
as func args
with common logger and profiler
Jack...
cuts rps down by 1/3, date formatting == slow
init args in module context.. and hooks in mod context so for example
use(DefaultContentType, 'text/html')
With a bit of closure magic we should be able to provide utility functions
to routes without this. Also now we may consider:
get('/user/:id/:operation', function(id, operation){
})
With halt()
adjust core as needed
As far as I can tell, you have a synchronous request handling.
Consequently, you will fail at
Just letting you know, because I am working on a node.js framework myself and did the exact same mistake at the beginning.
VS similar frameworks
only cache in production env,
make sure that contrib view engines have options
to disable their own caching
param('id') becomes '1/foo'
with "public" directory setting, ensure test -f
replace unescape
for JSON / XML etc
fix / refactor into own file and specs
Use Break for iterators
check back on the nodejs group
Add rawBody so the decoder module can support arbitrary body decoding
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.