This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work in progress, initial XML feed generated
- Loading branch information
1 parent
9fc2ee6
commit c3f65df
Showing
11 changed files
with
1,233 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,44 @@ | ||
<!-- AUTO-GENERATED-CONTENT:START (STARTER) --> | ||
<p align="center"> | ||
<a href="https://www.gatsbyjs.org"> | ||
<img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" /> | ||
</a> | ||
</p> | ||
<h1 align="center"> | ||
Gatsby's default starter | ||
</h1> | ||
|
||
Kick off your project with this default boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React. | ||
|
||
_Have another more specific idea? You may want to check out our vibrant collection of [official and community-created starters](https://www.gatsbyjs.org/docs/gatsby-starters/)._ | ||
|
||
## 🚀 Quick start | ||
|
||
1. **Create a Gatsby site.** | ||
|
||
Use the Gatsby CLI to create a new site, specifying the default starter. | ||
|
||
```sh | ||
# create a new Gatsby site using the default starter | ||
gatsby new my-default-starter https://github.com/gatsbyjs/gatsby-starter-default | ||
``` | ||
|
||
1. **Start developing.** | ||
|
||
Navigate into your new site’s directory and start it up. | ||
|
||
```sh | ||
cd my-default-starter/ | ||
gatsby develop | ||
``` | ||
|
||
1. **Open the source code and start editing!** | ||
|
||
Your site is now running at `http://localhost:8000`! | ||
|
||
_Note: You'll also see a second link: _`http://localhost:8000/___graphql`_. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql)._ | ||
Open the `my-default-starter` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time! | ||
## 🧐 What's inside? | ||
|
||
A quick look at the top-level files and directories you'll see in a Gatsby project. | ||
. | ||
├── node_modules | ||
├── src | ||
├── .gitignore | ||
├── .prettierrc | ||
├── gatsby-browser.js | ||
├── gatsby-config.js | ||
├── gatsby-node.js | ||
├── gatsby-ssr.js | ||
├── LICENSE | ||
├── package-lock.json | ||
├── package.json | ||
└── README.md | ||
1. **`/node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed. | ||
2. **`/src`**: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. `src` is a convention for “source code”. | ||
3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for. | ||
4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent. | ||
5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.org/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser. | ||
6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the [config docs](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail). | ||
7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process. | ||
8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering. | ||
9. **`LICENSE`**: Gatsby is licensed under the MIT license. | ||
10. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).** | ||
11. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project. | ||
12. **`README.md`**: A text file containing useful reference information about your project. | ||
## 🎓 Learning Gatsby | ||
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start: | ||
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process. | ||
- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar. | ||
## 💫 Deploy | ||
[](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-default) | ||
<!-- AUTO-GENERATED-CONTENT:END --> | ||
# Podcast basics | ||
|
||
* Create a feed with options | ||
* name | ||
* type (audio, video) | ||
* description | ||
* other things | ||
* Multiple feeds | ||
* Multiple sites/brands - far future | ||
* Publish to apple, spotify etc.. | ||
* chapters? | ||
|
||
|
||
* Gatsby plugins: | ||
* S3 - source for files & data | ||
* JSON to read files | ||
* feed-generator - 2 options | ||
* feed parser to create pages | ||
|
||
|
||
* pages: | ||
/login - for admin section. | ||
/admin - add feed, global options, list of feeds | ||
/admin/<feed> - handles uploads/adding an episode - triggers rebuild of the site for xml | ||
/<feed>/atom.xml, rss.xml (or whatever the spec says it ought to be) | ||
/ (blank for now) this eventually will be the html page for the site | ||
/master/rss.xml - all feeds from this site | ||
|
||
/admin - click 'new podcast' | ||
popup with a name - lambda function to create a s3 json object | ||
/admin/<feed-name> - (form with global options), list for episodes (form for each one) | ||
'generate feed' | ||
|
||
|
||
GET /admin/feed - generated from the xml feed? | ||
POST /admin/feed - upload to S3 (file and json blob). Triggers webhook to rebuild | ||
|
||
build of site: | ||
- pull json data from S3 | ||
- use this data to build xml feed | ||
- use (xml feed|json) to build pages | ||
- new site goes live - need to refresh the page for the user (logged in) | ||
- ie need to provide a way to show the site has been updated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:anchor="https://anchor.fm/xmlns"> | ||
<channel> | ||
<title><![CDATA[Hillsong Creative Podcast]]></title> | ||
<description><![CDATA[Hosted by Rich Langton from Hillsong Creative, listen to exclusive interviews with creative experts & influencers from around the world. Hear from producers & artists who have worked with the world's leading brands and performers, award-winning writers and designers as well as our own team from Hillsong Worship, United, and Young & Free. Get behind the scenes with the dreamers & doers in various spheres and creative disciplines. You'll be encouraged, inspired, and challenged as we find out what they’ve learnt and what we can learn from their journey!]]></description> | ||
<link>https://anchor.fm/hillsong-creative-podcast</link> | ||
<image> | ||
<url>https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded_nologo/993206/993206-1544764559287-2f1b50d4b2b02.jpg</url> | ||
<title>Hillsong Creative Podcast</title> | ||
<link>https://anchor.fm/hillsong-creative-podcast</link> | ||
</image> | ||
<generator>Anchor Podcasts</generator> | ||
<lastBuildDate>Mon, 27 May 2019 11:40:59 GMT</lastBuildDate> | ||
<atom:link href="https://anchor.fm/6841998/podcast/rss" rel="self" type="application/rss+xml"/> | ||
<copyright><![CDATA[Hillsong Creative Podcast]]></copyright> | ||
<language><![CDATA[en-au]]></language> | ||
<itunes:author>Hillsong Creative Podcast</itunes:author> | ||
<itunes:summary>Hosted by Rich Langton from Hillsong Creative, listen to exclusive interviews with creative experts & influencers from around the world. Hear from producers & artists who have worked with the world's leading brands and performers, award-winning writers and designers as well as our own team from Hillsong Worship, United, and Young & Free. Get behind the scenes with the dreamers & doers in various spheres and creative disciplines. You'll be encouraged, inspired, and challenged as we find out what they’ve learnt and what we can learn from their journey!</itunes:summary> | ||
<itunes:type>episodic</itunes:type> | ||
<itunes:owner> | ||
<itunes:name>Hillsong Creative Podcast</itunes:name> | ||
<itunes:email>[email protected]</itunes:email> | ||
</itunes:owner> | ||
<itunes:explicit>No</itunes:explicit> | ||
<itunes:category text="Religion & Spirituality"> | ||
<itunes:category text="Christianity"/> | ||
</itunes:category> | ||
<itunes:image href="https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded_nologo/993206/993206-1544764559287-2f1b50d4b2b02.jpg"/> | ||
<item> | ||
<title><![CDATA[044 Erwin McManus - The Way of the Warrior]]></title> | ||
<description><![CDATA[<p>Erwin McManus is an author, futurist, filmmaker, designer, and lead pastor of Mosaic Church in LA, passionate about identity and imagination. Listen as Erwin tears the veil between creativity and spirituality. He shares about his life and evolution as a Christian, writer, and creative in the middle of one of the world’s most prominent centers for creativity and innovation. Learn about his creative process for <a href="https://erwinmcmanus.com">his new book</a>, <em>The Way of the Warrior</em>, and how a living a life of art and beauty is essential to humanity and inner peace.</p>]]></description> | ||
<link>https://anchor.fm/hillsong-creative-podcast/episodes/044-Erwin-McManus---The-Way-of-the-Warrior-e44kms</link> | ||
<guid isPermaLink="false">d51811a2-64f8-c5ba-e93c-6440f511867e</guid> | ||
<pubDate>Mon, 27 May 2019 00:00:00 GMT</pubDate> | ||
<enclosure url="https://anchor.fm/s/6841998/podcast/play/3346588/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fproduction%2F2019-4-23%2F15796619-44100-2-eaebb63b10ec6.mp3" length="74065198" type="audio/mpeg"/> | ||
<itunes:summary><p>Erwin McManus is an author, futurist, filmmaker, designer, and lead pastor of Mosaic Church in LA, passionate about identity and imagination. Listen as Erwin tears the veil between creativity and spirituality. He shares about his life and evolution as a Christian, writer, and creative in the middle of one of the world’s most prominent centers for creativity and innovation. Learn about his creative process for <a href="https://erwinmcmanus.com">his new book</a>, <em>The Way of the Warrior</em>, and how a living a life of art and beauty is essential to humanity and inner peace.</p></itunes:summary> | ||
<itunes:explicit>No</itunes:explicit> | ||
<itunes:duration>2985</itunes:duration> | ||
<itunes:image href="https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded_nologo/993206/993206-1544764559287-2f1b50d4b2b02.jpg"/> | ||
<itunes:season>5</itunes:season> | ||
<itunes:episode>44</itunes:episode> | ||
<itunes:episodeType>full</itunes:episodeType> | ||
</item> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from "react" | ||
|
||
import Layout from "../../components/layout" | ||
import SEO from "../../components/seo" | ||
|
||
export default class FeedAdminPage extends React.Component { | ||
constructor(props) { | ||
super(props) | ||
// console.log(props.location.state.feedName) | ||
// this.props = props | ||
// this.feedName = props.location.state.feedName | ||
// this.state = {} | ||
} | ||
|
||
render() { | ||
return ( | ||
<Layout> | ||
<SEO title="Admin" /> | ||
<h1>Feed Admin for "{this.feedName}"</h1> | ||
|
||
<div> | ||
<label> | ||
Feed Name: <input disabled={true} defaultValue={this.feedName} /> | ||
</label> | ||
<label> | ||
Website: <input type="text" /> | ||
</label> | ||
<label> | ||
Description: <textarea name="" cols="50" rows="5" /> | ||
</label> | ||
|
||
<button type="button">Save Feed</button> | ||
</div> | ||
</Layout> | ||
) | ||
} | ||
} |
Oops, something went wrong.