Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the podverse-api scripts into podverse-workers, and integrate with new repos and node_modules #719

Draft
wants to merge 35 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d652096
Import podcastItunesTypeDefaultValue from podverse-shared
mitchdowney Dec 9, 2023
87c3445
WIP - Move functions into podverse-orm
mitchdowney Dec 9, 2023
6cab5f5
WIP - Migrate to new repo infrastructure
mitchdowney Dec 12, 2023
eded573
Continue moving scripts and services into other modules
mitchdowney Dec 14, 2023
8edb85d
Delete stats.ts
mitchdowney Dec 14, 2023
5baa0a3
Remove unused scripts and services from podverse-api
mitchdowney Dec 14, 2023
46882ec
Continue the migration to podverse-workers
mitchdowney Dec 14, 2023
f18088a
Remove deprecated scripts from package.json
mitchdowney Dec 14, 2023
f2c6768
Update hasValidMembership.ts
mitchdowney Dec 15, 2023
e38ff9a
Remove relocated utility functions
mitchdowney Dec 15, 2023
5c75654
Update appStore.ts
mitchdowney Dec 15, 2023
75bf60c
Update eslint modules
mitchdowney Dec 15, 2023
180c58c
Update .example.env
mitchdowney Dec 15, 2023
47141e5
Remove db config and manticore
mitchdowney Dec 15, 2023
be4ed2d
Config updates for podverse-orm migration
mitchdowney Dec 15, 2023
3d2c941
Update sendVerificationEmail.ts
mitchdowney Dec 15, 2023
6f14f49
Bump to podverse-shared ^4.15.3
mitchdowney Dec 15, 2023
d9cc9ba
Fix import errors
mitchdowney Dec 16, 2023
4f5e5e2
Disable husky
mitchdowney Dec 16, 2023
4211dd1
Update README.md
mitchdowney Dec 16, 2023
5801395
Update populateDatabase.md
mitchdowney Dec 16, 2023
baf67bd
Update settings.json
mitchdowney Dec 16, 2023
ee5707c
Update .env.example
mitchdowney Dec 16, 2023
879db5e
Update yarn.lock
mitchdowney Dec 16, 2023
ef2c8c9
Update mailer config
mitchdowney Dec 16, 2023
0170491
Delete .env.example
mitchdowney Dec 16, 2023
585078f
Update podverse-api_v4-13-4.postman_collection.json
mitchdowney Dec 18, 2023
e58aba9
Update index.ts
mitchdowney Dec 18, 2023
5371fa4
Remove twitter comments proxy
mitchdowney Dec 18, 2023
33bb001
Fix seed scripts
mitchdowney Dec 18, 2023
ff8ee2a
Update package.json
mitchdowney Dec 18, 2023
4e4ed27
Update yarn.lock
mitchdowney Dec 18, 2023
88f6c9e
Update yarn.lock
mitchdowney Dec 18, 2023
a52f53b
Bump Dockerfile to node:20-bullseye
mitchdowney Dec 18, 2023
b143442
Update paypal.ts
mitchdowney Jan 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.git

/src/config/bitpay/api.key
/src/config/google/jwt.keys.json
/src/config/parser/addFeedUrlsFile.json

/src/public/samples

Expand Down
133 changes: 0 additions & 133 deletions .example.env

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.git

/src/config/bitpay/api.key
/src/config/google/jwt.keys.json
/src/config/parser/addFeedUrlsFile.json

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.13.1
v20.10.0
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"partytime",
"podverse",
"ratelimit",
"Reparsing",
"typeorm"
"Reparsing"
]
}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:16-bullseye
FROM node:20-bullseye
WORKDIR /tmp
COPY . .

RUN npm install -g ts-node@8.5.4
RUN npm install -g ts-node@10.9.2
RUN npm install

# Update the package listing, so we know what package exist:
Expand Down
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,20 @@ Data API, database migration scripts, and backend services for the Podverse ecos

If you are looking to run this app or contribute to Podverse for the first time, please read the sections that are relevant for you in our [CONTRIBUTE.md](https://github.com/podverse/podverse-ops/blob/master/CONTRIBUTING.md) file in the podverse-ops repo. Among other things, that file contains instructions for running a local instance of the Podverse database.

### NPM or Yarn

We use yarn and maintain a `yarn.lock` file, but it's not really a requirement for you to use yarn. This documentation uses npm in examples, but we generally use the yarn equivalent commands.

### Setup environment variables

For local development, environment variables are provided by a local `.env` file. You can find a link to example `.env` files in the [CONTRIBUTING.md](https://github.com/podverse/podverse-ops/blob/master/CONTRIBUTING.md) file.

### Install node_modules

```bash
npm install
```sh
yarn
```

### Start dev server

```bash
npm run dev
```sh
yarn dev:watch
```

### Populate database
Expand All @@ -47,8 +43,8 @@ Instructions for this can be found in the [podverse-ops CONTRIBUTING.md file](ht

If you are creating a database from scratch, and not using the `populateDatabase` command explained in the CONTRIBUTE.md file, then you will need to populate the database with categories.

```bash
npm run dev:seeds:categories
```sh
yarn dev:seeds:categories
```

### Sync podcast data with Podcast Index API
Expand Down
6 changes: 3 additions & 3 deletions docs/populateDatabase.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Also, you will need to set `SUPER_USER_ID=jISAEEgXa` (due to [this Github issue]
#### Install node modules

```bash
npm install
yarn
```

### Populate database
Expand All @@ -43,7 +43,7 @@ npm install
To populate the database:

```bash
npm run dev:seeds:qa:populateDatabase
yarn dev:seeds:qa:populateDatabase
```

The full run will take 3+ minutes, mostly due to network requests to Podcast Index API to use real podcast data to populate the database.
Expand All @@ -53,5 +53,5 @@ The full run will take 3+ minutes, mostly due to network requests to Podcast Ind
To populate the database faster (with fewer podcasts), you can pass a `quick` flag to the populateDatabase script:

```bash
npm run dev:seeds:qa:populateDatabase quick
yarn dev:seeds:qa:populateDatabase quick
```
2 changes: 1 addition & 1 deletion docs/postman/podverse-api_v4-13-4.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@
"header": [
{
"key": "Authorization",
"value": "key={{FCM_GOOGLE_API_AUTH_TOKEN}}",
"value": "key={{GOOGLE_AUTH_TOKEN}}",
"type": "text"
},
{
Expand Down
81 changes: 0 additions & 81 deletions migrations/0001_userHistoryItems_init.sql

This file was deleted.

Loading