const express = require("express");
const cors = require("cors");
const app = express();
app.use(cors());
app.get("/hello", (req, res) => {
return res.json({ msg: "hello there 3" });
});
CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 10:37:48 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"889056d87ed2ec3c35111a3ed2bc293f"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=re%2Bp3fIJQyKraHNok0AgZdQ2KSGvaI1F%2Feuww7bC6Ymp3XCMYdaObBw0l6RBuh0ghVjsTMUTkAoOqbSiB1wDegkkiPwr3Rhl%2BySP9%2BoLjNUH%2BRmWj22kxZWJXcjVZVEbqbmOLGYIAejkJBQv9qHEO3OE05ABkY3vfhtpVYR6QPnSC8JFl%2FnXWE8bWueZt82sjRXcHsivW1iRtaIdwefMZgJ7brLq2dFvWtYLMwer35%2Fo67Ww6GcyuNqpX%2FMl30HgwNnGXSY5cAD9EKaw0Uisgg%3D%3D--9A4j6SluvGKqm%2BRO--b1HkT9ieL8Bl2PePrmsKuw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1396433058.1753612667; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 10:37:47 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 10:37:47 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C35C:29FD1F:D373EE:117C7F1:6886017B
srivenkat13’s gists · GitHub
View GitHub Profile
In the `server.js` ( or whatever file that runs on node)
{{ message }}
Instantly share code, notes, and snippets.
📈
Improving
Spins the Web 🕸️ any size,
Catches Bugs 🐞 just like flies,
Look up ⬆️
This file contains hidden or 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
/* from heropatterns.com */ | |
/* Plus signs */ | |
background-color: #1d1d1b; | |
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='https://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23121112' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); | |
/* Heart */ |
This file contains hidden or 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
const Elements = document.querySelectorAll(".badge-shape-wiz__text"); | |
const times = Array.from(Elements).map((ele) => ele.textContent); | |
function timeRemaining( {times,count = 0}) { | |
const selectedTimes = times.slice(count); | |
const totalSeconds = selectedTimes.reduce((acc, time) => { | |
const [min, sec] = time.split(":").map(Number); | |
return acc + min * 60 + sec; |
srivenkat13
/ vercel.json
Created
July 16, 2024 08:00
vercel json file to run node backend on vercel
This file contains hidden or 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
{ | |
"version": 2, | |
"builds": [ | |
{ | |
"src": "server.js", | |
"use": "@vercel/node", | |
"config": { "includeFiles": ["dist/**"] } | |
} | |
], | |
"routes": [ |
- creating a simple backend using express should look like below.
In the `server.js` ( or whatever file that runs on node)
import express from 'express'
// if importing as module, instead of commonJS, set property "type": "module" in package.json
You can’t perform that action at this time.