-
Notifications
You must be signed in to change notification settings - Fork 25
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
Showing
131 changed files
with
188 additions
and
182 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Fastify | ||
|
||
## What is Fastify ? | ||
Fastify is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture. | ||
|
||
## Install: | ||
To install Fastify in an existing project as a dependency install with npm: | ||
``` | ||
npm i fastify | ||
``` | ||
|
||
## Feature of Fastify: | ||
* Highly performant: as far as we know, Fastify is one of the fastest web frameworks in town, depending on the code complexity we can serve up to 76+ thousand requests per second. | ||
* Extendible: Fastify is fully extensible via its hooks, plugins and decorators. | ||
* Schema based: even if it is not mandatory we recommend to use JSON Schema to validate your routes and serialize your outputs, internally Fastify compiles the schema in a highly performant function. | ||
* Logging: logs are extremely important but are costly; we chose the best logger to almost remove this cost, Pino! | ||
# Fastify | ||
|
||
## What is Fastify ? | ||
Fastify is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture. | ||
|
||
## Install: | ||
To install Fastify in an existing project as a dependency install with npm: | ||
``` | ||
npm i fastify | ||
``` | ||
|
||
## Feature of Fastify: | ||
* Highly performant: as far as we know, Fastify is one of the fastest web frameworks in town, depending on the code complexity we can serve up to 76+ thousand requests per second. | ||
* Extendible: Fastify is fully extensible via its hooks, plugins and decorators. | ||
* Schema based: even if it is not mandatory we recommend to use JSON Schema to validate your routes and serialize your outputs, internally Fastify compiles the schema in a highly performant function. | ||
* Logging: logs are extremely important but are costly; we chose the best logger to almost remove this cost, Pino! | ||
* Developer friendly: the framework is built to be very expressive and help the developer in their daily use, without sacrificing performance and security. |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
// ESM | ||
import Fastify from 'fastify' | ||
const fastify = Fastify({ | ||
logger: true | ||
}) | ||
// CommonJs | ||
const fastify = require('fastify')({ | ||
logger: true | ||
}) | ||
|
||
fastify.get('/', async (request, reply) => { | ||
reply.type('application/json').code(200) | ||
return { hello: 'world' } | ||
}) | ||
|
||
fastify.listen({ port: 3000 }, (err, address) => { | ||
if (err) throw err | ||
// Server is now listening on ${address} | ||
// ESM | ||
import Fastify from 'fastify' | ||
const fastify = Fastify({ | ||
logger: true | ||
}) | ||
// CommonJs | ||
const fastify = require('fastify')({ | ||
logger: true | ||
}) | ||
|
||
fastify.get('/', async (request, reply) => { | ||
reply.type('application/json').code(200) | ||
return { hello: 'world' } | ||
}) | ||
|
||
fastify.listen({ port: 3000 }, (err, address) => { | ||
if (err) throw err | ||
// Server is now listening on ${address} | ||
}) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Underscore | ||
|
||
## What is Underscore ? | ||
Underscore.js is a utility-belt library for JavaScript that provides support for the usual functional suspects (each, map, reduce, filter, etc.) without extending any core JavaScript objects. | ||
|
||
## Install: | ||
To install Underscore in an existing project as a dependency install with npm: | ||
``` | ||
npm i underscore | ||
# Underscore | ||
|
||
## What is Underscore ? | ||
Underscore.js is a utility-belt library for JavaScript that provides support for the usual functional suspects (each, map, reduce, filter, etc.) without extending any core JavaScript objects. | ||
|
||
## Install: | ||
To install Underscore in an existing project as a dependency install with npm: | ||
``` | ||
npm i underscore | ||
``` |
6 changes: 3 additions & 3 deletions
6
Underscore/underscore.js β npm_Modules/Underscore/underscore.js
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const _ = require("underscore"); | ||
const list = [[5, 1, 7], [3, 2, 1]]; | ||
_.invoke(list, 'sort'); | ||
const _ = require("underscore"); | ||
const list = [[5, 1, 7], [3, 2, 1]]; | ||
_.invoke(list, 'sort'); | ||
// => [[1, 5, 7], [1, 2, 3]] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.