Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cosmicjs/premium-content-blog
A premium content blog app powered by Cosmic JS
https://github.com/cosmicjs/premium-content-blog
cosmicjs javascript nodejs react
Last synced: about 1 month ago
JSON representation
A premium content blog app powered by Cosmic JS
- Host: GitHub
- URL: https://github.com/cosmicjs/premium-content-blog
- Owner: cosmicjs
- Created: 2017-08-15T01:50:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-15T17:58:26.000Z (over 6 years ago)
- Last Synced: 2024-04-11T16:59:54.768Z (9 months ago)
- Topics: cosmicjs, javascript, nodejs, react
- Language: JavaScript
- Homepage: https://cosmicjs.com/apps/premium-content-blog
- Size: 2.54 MB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Premium Content Blog
![Premium Content Blog](https://cosmicjs.imgix.net/e80ab2e0-81d2-11e7-aa84-c93d0ada6a5f-Screen%20Shot%202017-08-15%20at%2010.59.57%20AM.png?w=1200)### [View the demo](https://cosmicjs.com/apps/premium-content-blog/demo)
### [Install the Premium Content Blog](https://cosmicjs.com/apps/premium-content-blog)
### Getting Started
Start your blogging career with this app that allows you to charge users on a subscription basis, for your premium content. Simply install the app, add your Stripe keys, then deploy to the Cosmic App Server (or your chosen hosting solution). [Sign up for Cosmic JS](https://cosmicjs.com) to install and deploy this app in a few minutes.```
git clone https://github.com/cosmicjs/premium-content-blog
cd premium-content-blog
npm install
```
Create a new file in `config/development.js` and add:
```
module.exports = {
bucket: {
slug: 'your-bucket-slug',
read_key: '', // optional, if added in Your Bucket > Settings
write_key: '' // optional, if added in Your Bucket > Settings
}
}```
Then
```
NODE_ENV=development npm run dev
```### Required environment variables
* ```STRIPE_PUBLISHABLE_KEY```: Your Stripe API publishable key
* ```STRIPE_SECRET_KEY```: Your stripe API secret key