Files
internship_node/day11/server.js
T

27 lines
651 B
JavaScript
Raw Normal View History

2025-07-17 16:55:13 +01:00
"use strict";
2022-02-06 22:15:10 -05:00
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2020*/
/**
* Server
* @copyright 2020 Manaknightdigital Inc.
* @link https://manaknightdigital.com
* @license Proprietary Software licensing
* @author Ryan Wong
*
*/
2025-07-17 16:55:13 +01:00
const { app, apollo } = require("./app");
2022-02-06 22:15:10 -05:00
2025-07-17 16:55:13 +01:00
const PORT = process.env.PORT || 3001;
2022-02-06 22:15:10 -05:00
app.listen(PORT, () => {
2025-07-17 16:55:13 +01:00
console.log(
"Server running at ",
true ? `http://localhost:${PORT}` : "process.env.BASE_URL"
);
console.log(
"GraphQL running at ",
true
? `http://localhost:${PORT}${apollo.graphqlPath}`
: `${"process.env.BASE_URL"}${apollo.graphqlPath}`
);
2022-02-06 22:15:10 -05:00
});