Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.
Here are 22,307 public repositories matching this topic...
Given the immense popularity of Docker and the need to harden it different per platform (see ideas below) - we'd like to start writing a Docker best practices section.
You're welcome to contribute ideas and write best practices - writing and brainstorming will people is an amazing way to deepen your Docker understanding.
At first, we want to collect ideas for best practices, solidify a list
On Windows10 machine, following README installation instructions:
c:\code\mean>npm start
mean@2.0.2 start c:\code\mean
concurrently -c "yellow.bold,green.bold" -n "SERVER,BUILD" "nodemon server" "ng build --watch"
[SERVER] [nodemon] 1.18.9
[SERVER] [nodemon] to restart at any time, enter rs
[SERVER] [nodemon] watching: .
[SERVER] [nodemon] starting node server
[SERVER] ../.
https://www.apollographql.com/docs/apollo-server/data/errors/#codes
Mentions that:
In addition to stacktraces, Apollo Server's exported errors specify a human-readable string in the code field of extensions that enables the client to perform corrective actions. In addition to improving the client experience, the code field allows the server to categorize errors. For example, an Authenticat
-
Updated
Oct 20, 2019 - JavaScript
I'm submitting a ...
- bug report
- [ X] feature request
- question
PostGraphile version: 4.4.4
postgraphile should honor variables in query string as defined in https://github.com/graphql/express-graphql#http-usage when the query is provided as post body.
with the following exampl
The second example in section 1.1 says:
expect(result.approved).to.be.false;
It should be:
expect(result.approved).to.be.true;
(I'm guessing you made it false so you could simulate the error output in the next picture.)
It would be great if all of these projects included a devcontainer dir & docker file so that they can be run without any machine setup or config
Similar to #12119
When a string is updated in the English source files they should be reset to the english version in all other languages since the meaning might have changed and the translation be outdated.
We might have to change a setting in Weblate or update the script that updates the translation files here.
-
Updated
May 24, 2020 - HTML
The example code does not work as intended.
Steps to reproduce
Use the example code:
var express = require('express');
var proxy = require('http-proxy-middleware');
var app = express();
app.use(
'/api',
proxy({ target: 'http://www.example.org', changeOrigin: true })
);
app.listen(3000);
Expected behavior
This should create a proxy for /api
to `http
-
Updated
Apr 18, 2020 - JavaScript
It would be better to use bcrypt, beause its more secure as it's slower (uses more computing cycles).
Your code could also be better:
You wouldn't need salt field in User model, because it's saved into the same field as password does.
For authentication, something like:
var mongoose = require('mongoose'),
bcrypt = require('bcryptjs');
var userSchema = mongoose.Schema({
email: String,
E.g.
check('email').isEmail().withMessage({
message: 'Not an email',
errorCode: ErrorCodes.NOT_EMAIL,
})
To support express-validator/express-validator#667 (comment).
It would be great to have this project as video series or as step by step tutorial where you learn bit by bit and have a functional product in the end.
-
Updated
Feb 13, 2020 - JavaScript
we want to use swagger integrated with API document under aws-serverless-express framework, so any document/guideline to follow?
if we follow some code rule to define the API method then generate the API document and show in swagger it is perfect
-
Updated
Apr 22, 2020 - JavaScript
-
Updated
Mar 27, 2020 - JavaScript
The features section in the docs states that nodemon is available in the project, when it's clearly not. It's not added as a dependency or as a command in the project. Maybe remove this from the docs or actually add nodemon?
-
Updated
Apr 30, 2020 - JavaScript
Sorry if this is off-topic, but I love the structure of express-es6-rest-api
and I'm struggling to use it with Mongoose. If anyone can point me to an example, that'd be great.
I saw the restful-mongoose link in the README, but that's a bit too automagic to me, I need more control.
Created by TJ Holowaychuk
Released November 16, 2010
- Organization
- expressjs
- Website
- expressjs.com
- Wikipedia
- Wikipedia
Express uses hardcoded values for debug namespace, for example:
https://github.com/expressjs/express/blob/b69b7605b07b41273acc931d25ab585377bcd107/lib/router/index.js#L20
and it is extremly hard to determine in output where things are happening while doing TDD on microservices architecture. It would be nice to allow to specify prefix for namespace, i.e. per microservice which is an express app.