Skip to content

mezielabs/stripe-one-time-payment-starter

Repository files navigation

Accepting Payment With Stripe: One-time Payment Starter Files

Getting started

Clone the project repository by running the command below:

# using SSH
git clone git@github.com:mezielabs/stripe-one-time-payment-starter.git
# using HTTPS
git clone https://github.com/mezielabs/stripe-one-time-payment-starter.git

After cloning, run:

npm install

Duplicate .env.example:

cp env.example .env

Build the application:

node ace build

Generate APP_KEY:

node ace generate:key

This will output a random string, which you will need to add inside .env.

Update environment variables:

// .env

APP_KEY=YOUR_GENERATED_KEY_COPIED_FROM_ABOVE
DB_CONNECTION=mysql
DB_HOST=localhost
DB_NAME=stripe-payment
DB_USER=YOUR_DATABASE_USERNAME
DB_PASSWORD=YOUR_DATABASE_PASSWORD

Remember to update YOUR_DATABASE_USERNAME and YOUR_DATABASE_PASSWORD with your database details.

Rebuild the application:

node ace build

Run the migrations:

node ace migration:run

Run the database seeder:

node ace db:seed

Finally, start the application:

node ace serve

and visit http://127.0.0.1:3333 to see the application in action.

Learn AdonisJS

Want to learn how to build projects like this with AdonisJS? Checkout Adonis Mastery, where you get to learn AdonisJS through practical screencasts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published