What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-09 17:24:12
Express.js - app.listen vs server.listen
//The second form (creating an HTTP server yourself, instead of having Express create one for you) is useful if you want to reuse the HTTP server, for example to run socket.io within the same HTTP server instance: var express = require('express'); var ap... Add solution -
Shell/Bash 2021-10-28 23:24:19
dockerfile for vuejs
#Dockerfile for VueJS # Choose the Image which has Node installed already FROM node:lts-alpine # install simple http server for serving static content RUN npm install -g http-server # make the 'app' folder the current working directory WORKDIR /app # c... Add solution -
Other 2021-10-21 16:51:04
what is port 80 used for
Port 80 is one of the most commonly used port numbers in the Transmission Control Protocol (TCP) suite. Any Web/HTTP client, such as a Web browser, uses port 80 to send and receive requested Web pages from a HTTP server. It manages all HTTP-based reques... Add solution -
Go 2021-10-10 06:59:10
Golang HTTP Server
// Code by Divyanshu Shekhar - https://divyanshushekhar.com/golang-http-server/ // Golang HTTP Server package main import ( "fmt" "log" "net/http" ) const ( // Host name of the HTTP Server Host = "localhost"... Add solution -
TypeScript 2021-10-09 08:27:09
Using mod_rewrite Configuration to Change Requests from NON-SSL to SSL
Using mod_rewrite Configuration to Change Requests from NON-SSL to SSL Oracle HTTP Server - Version 12.2.1.4.0 and later Information in this document applies to any platform. SYMPTOMS Using mod_rewrite configuration to change requests from non-ssl to ssl... Add solution -
Java 2021-09-29 23:47:05
how do you implement api
My PROCESS TO IMPLEMENT API First of all 1. Checking API Contract An API is essentially a contract between the client and the server or between two applications. Before any implementation test can begin, it is important to make sure that the contract is c... Add solution -
Shell/Bash 2021-09-24 15:17:04
dockerfile for NGINX vuejs
#Dockerfile for VueJS # Choose the Image which has Node installed already FROM node:lts-alpine # install simple http server for serving static content RUN npm install -g http-server # make the 'app' folder the current working directory WORKDIR /app # c... Add solution -
Java 2021-09-24 09:07:02
api process flow
I HAVE FOUR DIFFERENT PROCESS TO IMPLEMENT 1. Checking API contract 2. Creating test cases 3. Executing test cases 4. Implementing different test flows 1. Checking API Contract An API is essentially a contract between the client and the server or betwee... Add solution -
Javascript 2021-09-03 16:42:02
nodejs cluster example
const cluster = require('cluster'); const http = require('http'); const numCPUs = require('os').cpus().length; if (cluster.isMaster) { console.log(`Master ${process.pid} is running`); // Fork workers. for (let i = 0; i < numCPUs; i++) { clu... Add solution