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.example
file. Duplicate this file and rename it to.env
. -
Open the
.env
file and populate it with the required environment variables:JWT_SECRET=//YourSecretKeyHere MONGODB_URL=//YourMongoDBURLHere
Replace
//YourSecretKeyHere
with your chosen secret key for JWT (JSON Web Tokens) and//YourMongoDBURLHere
with your MongoDB connection URL. -
Save the
.env
file. -
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.