This guide will walk you through the steps required to set up and run the payment server for the art gallery mobile app.
Before you begin, make sure you have the following:
- A Stripe account
- Node.js and npm installed on your machine
-
Clone the repository to your local machine:
git clone <repository-url>
-
Navigate to the project directory:
cd stripe-server
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory of the project. -
Add the following environment variables to the
.env
file:STRIPE_PUBLISHABLE_KEY=<your-stripe-publishable-key> STRIPE_SECRET_KEY=<your-stripe-secret-key>
Replace
<your-stripe-publishable-key>
and<your-stripe-secret-key>
with your actual Stripe API keys.
To start the payment server, run the following command:
node server.js