This repository is For a web application project. This project is a Web Forum used to post and comment by the users. Instructions:
- Open terminal in and go to the same terminal.
- Type "npm init -y" to initialize the code.
- Type "npm i express express-handlebars body-parser express-session mongodb mongoose bcrypt connect-mongodb-session multer" to install the necessary modules.
- Type "node app.js" to run the server then go to localhost:3000 on the browser.
Sample Data
- SampleData are located in the sampleData Folder
- Run the app.js first to create the names of the collections
- Import each of the json files to their respective collections based on their filenames in the MONGODBCOMPASS.
- Refresh the page to show the updated values.
- Structure of the database should look something like this:
- logindb
- login
- posts
- comments
- profiles
- logindb
You may also just click this link: https://dlsuforumwebapp.onrender.com