Please use the following command inside the project root folder to install the required dependencies:
bundle install
After installing the dependencies, please use the following commands to create database and seed users data
db:create db:migrate db:seed
User 1: (Simple User) email: "test@example.com" password: "password"
User 2: (Admin User) email: "admin@example.com" password: "password"
- User and Admin Sign in feature
- Admin and User Dashboards
- Decrement of SMS
- Payment History page for Admin User
- Integration of Stripe
- Service and methods are ready for the Twilio Integration.
- Currently, working on customizing the Stripe to buy credits based on the provided amount.
To install the Stripe CLI on Linux without a package manager:
Download the latest linux tar.gz file from https://github.com/stripe/stripe-cli/releases/latest
Unzip the file using the command
tar -xvf stripe_X.X.X_linux_x86_64.tar.gz
Move ./stripe to the project root
You have to first login using the command
./stripe login
Then use the following command to register the stripe events on local DB
./stripe listen --forward-to localhost:3000/pay/webhooks/stripe
After executing the above command you'll receive a signing secret along with the following message
Getting ready... > Ready! You are using Stripe API Version [2020-08-27]. Your webhook signing secret is xxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
You have to copy the signing secret key and have you will have to update the rails credentials file using the command
EDITOR="nano" rails credentials:edit