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.gitAfter cloning, run:
npm installDuplicate .env.example:
cp env.example .envBuild the application:
node ace buildGenerate APP_KEY:
node ace generate:keyThis 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_PASSWORDRemember to update
YOUR_DATABASE_USERNAMEandYOUR_DATABASE_PASSWORDwith your database details.
Rebuild the application:
node ace buildRun the migrations:
node ace migration:runRun the database seeder:
node ace db:seedFinally, start the application:
node ace serveand visit http://127.0.0.1:3333 to see the application in action.
Want to learn how to build projects like this with AdonisJS? Checkout Adonis Mastery, where you get to learn AdonisJS through practical screencasts.