📜  服务器启动所需 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:03.297000             🧑  作者: Mango

代码示例1
require("dotenv").config();

const express = require("express");
const superagent = require("superagent");
const ejs = require("ejs");
const pg = require("pg");

const server = express();
const PORT = process.env.PORT || 3000;
const client = new pg.Client(process.env.DATABASE_URL);