Welcome to the PayNode - A Platform for online monetary payment
To get the backend server up and running, please follow these steps:
-
Optionally, you can run the following command to install backend dependencies:
npm install
-
Navigate to the backend directory:
cd server npm install -
In the backend directory, you'll find an
env.examplefile. Duplicate this file and rename it to.env. -
Open the
.envfile and populate it with the required environment variables:JWT_SECRET=//YourSecretKeyHere MONGODB_URL=//YourMongoDBURLHereReplace
//YourSecretKeyHerewith your chosen secret key for JWT (JSON Web Tokens) and//YourMongoDBURLHerewith your MongoDB connection URL. -
Save the
.envfile. -
Start the server by running the following command:
node index.js
Once launched successfully, you should see the following output in your terminal:
App listening on port 8080 Database connected
To begin with the frontend application, follow these steps:
-
Navigate to the frontend directory:
cd client npm install -
Run the following command to start the application:
npm run dev
This command will initiate the frontend application.