Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Rename Rich Cow to CCashCow
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXyfir committed Mar 23, 2019
1 parent a78804f commit 9d8b52b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "accownt"]
path = accownt
url = https://github.com/Xyfir/accownt.git
[submodule "ccashcow"]
path = ccashcow
url = https://github.com/Xyfir/ccashcow.git
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"search.exclude": {
"**/coverage": true,
"**/rich-cow": true,
"**/ccashcow": true,
"**/accownt": true,
"**/dist": true
},
Expand Down
1 change: 1 addition & 0 deletions ccashcow
Submodule ccashcow added at 4d9954
18 changes: 9 additions & 9 deletions docs/self-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ cd ../accownt/server
npm install
cd ../web
npm install
cd ../../rich-cow/server
cd ../../ccashcow/server
npm install
cd ../web
npm install
Expand Down Expand Up @@ -75,7 +75,7 @@ Replace `ptorx` with the name of your database.
Now we need to create the data directories where Ptorx and its submodules will write both temporary and permanent data to the disk. You can put them wherever you'd like (just remember it for Step 4), but for now we'll put them alongside `ptorx/`.

```bash
mkdir ../accownt-db ../mail-cache ../rich-cow-db
mkdir ../accownt-db ../mail-cache ../ccashcow-db
```

You can also name the three directories however you'd like.
Expand All @@ -91,14 +91,14 @@ To understand the syntax of the `.env` files, know that they are first loaded vi
First we'll create each file and then we'll work our way through populating them with values.

```bash
touch server/.env web/.env accownt/server/.env accownt/web/.env rich-cow/server/.env rich-cow/web/.env
touch server/.env web/.env accownt/server/.env accownt/web/.env ccashcow/server/.env ccashcow/web/.env
```

## Step 4b: Configure Rich Cow
## Step 4b: Configure CCashCow

See [Xyfir/rich-cow](https://github.com/Xyfir/rich-cow) for instructions.
See [Xyfir/ccashcow](https://github.com/Xyfir/ccashcow) for instructions.

Use `vim` or `nano` or similar to edit the files `rich-cow/server/.env` and `rich-cow/web/.env`.
Use `vim` or `nano` or similar to edit the files `ccashcow/server/.env` and `ccashcow/web/.env`.

## Step 4c: Configure Accownt

Expand All @@ -121,7 +121,7 @@ cd ../accownt/server
npm run build
cd ../web
npm run build
cd ../../rich-cow/server
cd ../../ccashcow/server
npm run build
cd ../web
npm run build
Expand Down Expand Up @@ -188,8 +188,8 @@ cd server
pm2 start --name ptorx npm -- run start
cd ../accownt/server
pm2 start --name accownt npm -- run start
cd ../../rich-cow/server
pm2 start --name rich-cow npm -- run start
cd ../../ccashcow/server
pm2 start --name ccashcow npm -- run start
pm2 startup # then follow instructions
```

Expand Down
3 changes: 2 additions & 1 deletion server/lib/payments/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ export async function startPayment(
},
'1d'
);
return { url: `${process.enve.RICH_COW_WEB_URL}?jwt=${jwt}` };

return { url: `${process.enve.CCASHCOW_WEB_URL}?jwt=${jwt}` };
}
8 changes: 4 additions & 4 deletions types/ptorx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export namespace Ptorx {
*/
MYSQL: any;
/**
* Shared secret (also used by Accownt and Rich Cow) used for signing and
* Shared secret (also used by Accownt and CCashCow) used for signing and
* verifying JSON Web Tokens.
*/
JWT_KEY: string;
Expand Down Expand Up @@ -285,10 +285,10 @@ export namespace Ptorx {
*/
PERSISTENT_ALIAS: string;
/**
* URL for the Rich Cow web client.
* @example "https://ptorx.com/rich-cow"
* URL for the CCashCow web client.
* @example "https://ptorx.com/ccashcow"
*/
RICH_COW_WEB_URL: string;
CCASHCOW_WEB_URL: string;
/**
* Configuration for the SMTP server.
* https://nodemailer.com/extras/smtp-server/#step-3-create-smtpserver-instance
Expand Down

0 comments on commit 9d8b52b

Please sign in to comment.