Closed gbowne1 closed 1 year ago
I still need to add the rest of the html, css and js files that make up the pages from the original project, but the poorly done html and css files need to be redone. I will do that this week. The routes for them needs to be done.
Am now getting:
$ node server.js
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'ejs'
Require stack:
- /RadioLogger/src/server/server.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/RadioLogger/src/server/server.js:36:20)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/RadioLogger/src/server/server.js'
]
}
Can you assign it to me?
the original db was called radiologger. I am working on making some new html and css files to replace the old ones that are a complete mess.
Only have one model?
yeah, I originally only did one. At the time I abandoned all the really bad copies of the project, that model was the only one I got done.
I think that this is because there is no:
app.use(express.static('public'));
The server.js needs some work and has a few issues.
After removing the old repository and migrating the old files from the old project, this has some issues starting the server and listening to the server with nodemon.
I can't get it to connect properly to MongoDB locally anymore. it was working before but the codebase was a unorganized mess. This is a completely brand new server.js
Edit: bare routes were added today.