This is the payment service for the ecommerce application.
To get started, clone the repository and install the dependencies:
git clone https://github.com/jerryjayce/ecommerce-service-payment.git
cd ecommerce-service-payment
npm installTo start the application in development mode, run:
npm run start:devTo build the application, run:
npm run buildTo start the application in production mode, run:
npm startseed: Run the seed script.start:dev: Start the application in development mode.start: Start the application in production mode.build: Build the application.postbuild: Copy files after build.test: Run tests.lint: Lint the code.lint:fix: Lint and fix the code.knex: Run knex commands.db:migrate:make: Create a new migration.db:migrate: Run migrations.db:migrate:rollback: Rollback migrations.db:seed: Run seeds.
GET /:id: Get a payment by ID.POST /: Initiate a new payment.
To seed the database, run:
npm run seed