Skip to content

Commit

Permalink
initial comit
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Jul 23, 2024
1 parent 91c0f8f commit e7440b4
Show file tree
Hide file tree
Showing 28 changed files with 1,539 additions and 233 deletions.
18 changes: 1 addition & 17 deletions .cfconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,5 @@
"inspectTemplate":"always",
"requestTimeout":"0,0,0,90",
"robustExceptionEnabled":true,
"datasources": {
"coolblog": {
"class":"${DB_CLASS}",
"dbdriver": "MySQL",
"dsn":"jdbc:mysql://{host}:{port}/{database}",
"custom":"useUnicode=true&characterEncoding=UTF8&serverTimezone=UTC&useLegacyDatetimeCode=true&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true",
"host":"${DB_HOST:127.0.0.1}",
"username": "${DB_USER:root}",
"password": "${DB_PASSWORD}",
"database": "coolblog",
"port": "${DB_PORT:3306}",
"storage":"false",
"bundleName": "${DB_BUNDLENAME}",
"bundleVersion": "${DB_BUNDLEVERSION}",
"validate":"false"
}
}
"datasources": {}
}
9 changes: 2 additions & 7 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=mysql
DB_CLASS=com.mysql.cj.jdbc.Driver
DB_BUNDLEVERSION=8.0.19
DB_BUNDLENAME=com.mysql.cj
STRIPE_API_KEY=
STRIPE_PUBLISHABLE_KEY=
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
type: boolean

env:
MODULE_ID: @MODULE_SLUG@
MODULE_ID: cbpayments
SNAPSHOT: ${{ inputs.snapshot || false }}

jobs:
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing Guide

Hola amigo! I'm really excited that you are interested in contributing to @MODULE_NAME@. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
Hola amigo! I'm really excited that you are interested in contributing to cbPayments. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:

- [Code Of Conduct](#code-of-conduct)
- [Bug Reporting](#bug-reporting)
Expand Down Expand Up @@ -98,11 +98,11 @@ You can support ColdBox and all of our Open Source initiatives at Ortus Solution

## Contributors

Thank you to all the people who have already contributed to @MODULE_NAME@! We :heart: :heart: :heart: love you!
Thank you to all the people who have already contributed to cbPayments! We :heart: :heart: :heart: love you!


<a href = "https://github.com/coldbox-modules/@module_name@/graphs/contributors">
<img src = "https://contrib.rocks/image?repo=coldbox-modules/@module_name@"/>
<a href = "https://github.com/coldbox-modules/cbPayments/graphs/contributors">
<img src = "https://contrib.rocks/image?repo=coldbox-modules/cbPayments"/>
</a>

Made with [contributors-img](https://contrib.rocks)
22 changes: 9 additions & 13 deletions ModuleConfig.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,38 @@
component {

// Module Properties
this.title = "@MODULE_NAME@";
this.author = "Ortus Solutions";
this.webURL = "https://www.ortussolutions.com";
this.description = "@MODULE_DESCRIPTION@";
this.version = "@build.version@[email protected]@";
this.title = "cbPayments";
this.author = "Ortus Solutions";
this.webURL = "https://www.ortussolutions.com";
this.description = "A module providing a common interface and API for processing payments and subscriptions'";
this.version = "@build.version@[email protected]@";

// Model Namespace
this.modelNamespace = "@MODULE_SLUG@";
this.modelNamespace = "cbpayments";

// CF Mapping
this.cfmapping = "@MODULE_SLUG@";
this.cfmapping = "cbpayments";

// Dependencies
this.dependencies = [];
this.dependencies = [];

/**
* Configure Module
*/
function configure(){
settings = {

};
settings = {};
}

/**
* Fired when the module is registered and activated.
*/
function onLoad(){

}

/**
* Fired when the module is unregistered and unloaded
*/
function onUnload(){

}

}
92 changes: 51 additions & 41 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,64 @@
{
"name" : "@MODULE_NAME@",
"version" : "1.0.0",
"location" : "https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/@MODULE_SLUG@/@build.version@/@MODULE_SLUG@[email protected]@.zip",
"author" : "Ortus Solutions <[email protected]>",
"homepage" : "https://github.com/coldbox-modules/@MODULE_SLUG@",
"documentation" : "https://github.com/coldbox-modules/@MODULE_SLUG@",
"repository" : { "type" : "git", "url" : "https://github.com/coldbox-modules/@MODULE_SLUG@" },
"bugs" : "https://github.com/coldbox-modules/@MODULE_SLUG@",
"shortDescription" : "Description goes here",
"slug" : "@MODULE_SLUG@",
"type" : "modules",
"keywords":"",
"license" : [
{ "type" : "Apache2", "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" }
],
"contributors" : [
],
"dependencies" :{
},
"devDependencies" :{
"commandbox-cfformat":"*",
"name":"cbPayments",
"version":"1.0.0",
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbpayments/@build.version@/[email protected]@.zip",
"author":"Ortus Solutions <[email protected]>",
"homepage":"https://github.com/coldbox-modules/cbpayments",
"documentation":"https://github.com/coldbox-modules/cbpayments",
"repository":{
"type":"git",
"url":"https://github.com/coldbox-modules/cbpayments"
},
"bugs":"https://github.com/coldbox-modules/cbpayments",
"shortDescription":"Description goes here",
"slug":"cbpayments",
"type":"modules",
"keywords":"",
"license":[
{
"type":"Apache2",
"url":"http://www.apache.org/licenses/LICENSE-2.0.html"
}
],
"contributors":[],
"dependencies":{
"stripecfml":"^3.6.0",
"mementifier":"^3.4.0+2"
},
"devDependencies":{
"commandbox-cfformat":"*",
"commandbox-docbox":"*",
"commandbox-dotenv":"*",
"commandbox-dotenv":"*",
"commandbox-cfconfig":"*"
},
"ignore":[
},
"ignore":[
"**/.*",
"test-harness",
"/server*.json"
"/server*.json"
],
"scripts":{
"setupTemplate": "task run taskFile=build/SetupTemplate.cfc",
"build:module":"task run taskFile=build/Build.cfc :projectName=`package show slug` :version=`package show version`",
"build:docs":"task run taskFile=build/Build.cfc target=docs :projectName=`package show slug` :version=`package show version`",
"install:dependencies":"install && cd test-harness && install",
"release":"recipe build/release.boxr",
"scripts":{
"build:module":"task run taskFile=build/Build.cfc :projectName=`package show slug` :version=`package show version`",
"build:docs":"task run taskFile=build/Build.cfc target=docs :projectName=`package show slug` :version=`package show version`",
"install:dependencies":"install --force && cd test-harness && install --force",
"release":"recipe build/release.boxr",
"format":"cfformat run helpers,models,test-harness/tests/,ModuleConfig.cfc --overwrite",
"format:watch":"cfformat watch helpers,models,test-harness/tests/,ModuleConfig.cfc ./.cfformat.json",
"format:check":"cfformat check helpers,models,test-harness/tests/,ModuleConfig.cfc ./.cfformat.json",
"start:lucee" : "server start [email protected]",
"start:2018" : "server start [email protected]",
"start:2021" : "server start [email protected]",
"stop:lucee" : "server stop [email protected]",
"stop:2018" : "server stop [email protected]",
"stop:2021" : "server stop [email protected]",
"logs:lucee" : "server log [email protected] --follow",
"logs:2018" : "server log [email protected] --follow",
"logs:2021" : "server log [email protected] --follow"
"start:lucee":"server start [email protected]",
"start:2018":"server start [email protected]",
"start:2021":"server start [email protected]",
"stop:lucee":"server stop [email protected]",
"stop:2018":"server stop [email protected]",
"stop:2021":"server stop [email protected]",
"logs:lucee":"server log [email protected] --follow",
"logs:2018":"server log [email protected] --follow",
"logs:2021":"server log [email protected] --follow"
},
"testbox":{
"testbox":{
"runner":"http://localhost:60299/tests/runner.cfm"
},
"installPaths":{
"stripecfml":"modules/stripecfml/",
"mementifier":"modules/mementifier/"
}
}
6 changes: 3 additions & 3 deletions build/SetupTemplate.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ component {
command( "tokenReplace" )
.params(
path = "/#variables.cwd#/**",
token = "@MODULE_NAME@",
token = "cbPayments",
replacement = moduleName
)
.run();

command( "tokenReplace" )
.params(
path = "/#variables.cwd#/**",
token = "@MODULE_SLUG@",
token = "cbpayments",
replacement = moduleSlug
)
.run();

command( "tokenReplace" )
.params(
path = "/#variables.cwd#/**",
token = "@MODULE_DESCRIPTION@",
token = "A module providing a common interface and API for processing payments and subscriptions'",
replacement = moduleDescription
)
.run();
Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.0] => 2021-JAN-01
## [1.0.0] => 2024-JUL-23

* First iteration of this module
8 changes: 8 additions & 0 deletions models/processor/AuthorizeNETProcessor.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* A cool processor/AuthorizeNET entity
*/
component extends="BaseProcessor" {


}

Loading

0 comments on commit e7440b4

Please sign in to comment.