We need a file structure, structured in a way that it will help us work simultaneously and without tripping over eachother. Here is what I am thinking. Please check Discord for proper branch naming
/search-engine-project
-- /public (This directory contains all the static files like CSS, JS, and images.)
-- /css
-- /js
-- /images
-- /src (This is where the main application code resides.)
-- /config (Contains configuration files, like the MongoDB connection settings.)
-- mongodb.js (MongoDB connection settings)
-- postgres.js (PostgreSQL connection settings)
-- /models ( Separate directories for MongoDB and PostgreSQL models. Depending on the database selected for a search, use the corresponding model.)
-- /mongo
-- SearchItem.js (Mongoose model)
-- /postgres
-- SearchItem.js (Sequelize or other ORM model)
-- /routes (Contains all the route definitions.)
-- search.js
-- otherRoutes.js
-- /controllers (Contains functions that handle the logic for each route. like mongodb or postgres)
-- searchController.js
-- /middleware (Contains middleware functions, like authentication and error handling.)
-- authentication.js
-- errorHandling.js
-- /utils (Contains utility functions that can be used throughout the application.)
-- searchUtils.js
-- /views (Templates for our views)
-- login.ejs (user login, we could use a partial login navbar instead if preferred)
We need a file structure, structured in a way that it will help us work simultaneously and without tripping over eachother. Here is what I am thinking. Please check Discord for proper branch naming
^^This will also include files from NPM INIT and NPM INSTALL^^