-
app.js
-
our app's main entry point
-
when creating a new page, add a corresponding router to
app.js
... // require page routers const indexRouter = require("./routes/index"); ... const <example>Router = require("./routes/<example>";) ... ... // use page routers app.use("/", indexRouter); ... app.use("/<example>", <example>Router)
-
-
firebase-config-admin.js
-
enables use of the Firebase Admin SDK
-
require
this file for admin-specific functionality for authentication, firestore, etc.
-
-
firebase-config-client.js
-
enables use of the Firebase JavaScript SDK
-
require
this file for client-side functionality, such as logging a user in
-
- contains routing files (JavaScript), one per page
-
\partials
- contains reusable elements, such as headers, footers, etc.
-
contains view files (Pug), one per page
-
.eslintrc.js
- config file for ESLint
-
package-lock.json
-
describes app dependencies
-
automatically updated when installing / updating packages
-
-
package.json
-
describes app details, dependencies
-
automatically updated when installing / updating packages
-
www
- creates an HTTP server for
app.js
- creates an HTTP server for
- contains libraries downloaded via
npm
-
style.css
-
describes the presentation of our content
-
mostly overridden since we are using Bootstrap
-
-
foodshare-d3eee-firebase-adminsdk-muxzq-c6401baa87.json
- private key file for
firebase-config-admin.js
- private key file for