feat: complete day 11

This commit is contained in:
Ayobami
2025-07-17 16:55:13 +01:00
parent 001e4b6d00
commit 9c84737fed
18 changed files with 919 additions and 177 deletions
+13 -5
View File
@@ -1,4 +1,4 @@
'use strict';
"use strict";
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2020*/
/**
* Server
@@ -8,11 +8,19 @@
* @author Ryan Wong
*
*/
const { app, apollo } = require('./app');
const { app, apollo } = require("./app");
const PORT = 3001;
const PORT = process.env.PORT || 3001;
app.listen(PORT, () => {
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}`);
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}`
);
});