Samuel
2. Get it working locally Just follow the instructions in the README, basically just install deps using yarn, create an .env file and fill it in, then run yarn start! You'll see each post printed to the console as they come in. Note - you won't know what FEEDGEN_HOSTNAME is yet, leave it as is
1 1
Samuel
Also, you'll want to set FEEDGEN_SQLITE_LOCATION="db.sqlite" so that the database is persisted. Make sure to add db.sqlite to .gitignore
1 1
Samuel
3. Edit the post selection mechanism Open /src/subscription.ts This is where it chooses which posts to save to the database. Delete the console.log() and edit the filter on line 23 to select whatever posts you're looking for
1 1
Samuel
4. Create the app on Digital Ocean app platform On Digital Ocean, create a new app and select your git repo (make sure you pushed your changes) Select smallest option ($5.00/mo at time of writing)
1 1
Samuel
5. Add the environment variables When prompted, add your environment variables. There's an option for bulk editing - you can paste your whole .env file in here
1 1
Samuel
6. Change env vars slightly Make these changes: FEEDGEN_PORT=8080 FEEDGEN_LISTENHOST="0.0.0.0"
2 1
Samuel
7. Deploy! if you have errors, you can fix them and simply push your changes to github and it will automatically redeploy for example, I needed a fetch polyfill due to the older nodejs version so I added undici - I'm not sure if was due to my specific changes though since I added some stuff
1 1 1
Samuel
@samuel.fm
9. Publish! Open /scripts/publishFeedGen.ts and edit the values When you're happy, run yarn publishFeed
1 1