The Knuth application has been deployed on Render and can be accessed at link.
To run the Knuth application locally, create a .env
file with the following parameters:
URI
=<MongoDB URI here>
DEV_PORT
= 3000CLIENT_ID
=<Google OAuth Client ID>
CLIENT_SECRET
=<Google OAuth Client secret>
SESSION_SECRET
=<Express session secret>
ImageUploadLimit
= 5ImageSizeLimitInBytes
= 1048576imgurClientID
=<Imgur Client ID>
imgurClientSecret
=<Imgur Client Secret>
TitleLength
= 100DescriptionLength
= 1000Host
=http://localhost:3000
limitPerPage
= 3NodeMailerEmail
=<Email for Nodemailer>
NodeMailerAppPassword
=<App password for that email>
-
"axios": "^1.5.0"
-
"dotenv": "^16.3.1"
-
"ejs": "^3.1.9"
-
"express": "^4.18.2"
-
"express-session": "^1.17.3"
-
"imgur": "^0.3.1"
-
"mongodb": "^5.7.0"
-
"multer": "^1.4.5-lts.1"
-
"nodemailer": "^6.9.5"
-
"passport": "^0.6.0"
-
"passport-google-oauth20": "^2.0.0"
-
"tslib": "^2.6.2"
Use npm install
to install all the dependencies.
to run, trigger - node ServerSide/server.js