GradGather uses theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/meenalsingh0/GradGather/llms.txt
Use this file to discover all available pages before exploring further.
dotenv package to load runtime configuration from a .env file in the project root. The call to require("dotenv").config() at the top of src/index.js makes every key in that file available on process.env before any route or service is initialized. You must create this file yourself — it is intentionally excluded from version control.
Required .env Template
Copy the following block into a new file named.env at the project root and fill in your own values before starting the server:
Variable Reference
The port the Express HTTP server binds to. If this variable is not set, the server defaults to Default:
3000 as defined in src/index.js:3000 — Example: 3000Controls which PayPal environment the
paypal-rest-sdk targets. Set to sandbox while developing and testing so that no real money changes hands. Switch to live only when accepting real donations in production.Required for: Donation / payment features — Example: sandboxAccepted values: sandbox | liveThe Client ID for your PayPal REST application. This value is read in
src/controllers/paymentController.js and passed to paypal.configure() as client_id. It identifies your app to the PayPal API when creating and executing payments.Required for: Donation / payment features — Example: AaBbCcDd...The Secret Key for your PayPal REST application. It is passed to
paypal.configure() as client_secret and is used to sign API requests. This value must be kept confidential — do not log it, expose it in client-side code, or commit it to source control.Required for: Donation / payment features — Example: EeFfGgHh...MongoDB Connection
The MongoDB connection URI is currently hardcoded directly insrc/mongo.js:
src/mongo.js
src/mongo.js
MONGODB_URI to your .env file when you need to override the default: