Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lissone/ignews
React world news blog.
https://github.com/lissone/ignews
faunadb jamstack next-auth nextjs prismic-cms react sass stripe typescript
Last synced: 3 days ago
JSON representation
React world news blog.
- Host: GitHub
- URL: https://github.com/lissone/ignews
- Owner: Lissone
- Created: 2021-06-06T18:18:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-21T23:17:18.000Z (almost 3 years ago)
- Last Synced: 2023-03-05T04:35:18.423Z (over 1 year ago)
- Topics: faunadb, jamstack, next-auth, nextjs, prismic-cms, react, sass, stripe, typescript
- Language: TypeScript
- Homepage: ignews-lissone.vercel.app
- Size: 1.95 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Description |
Requirements |
Technologies |
Layout |
Usage |
Demonstration
## Description
A news blog with no backend. A JAM Stack application that uses paid subscription by users authenticated by github using stripe and prismic CMS to control publications.
Developed as a challenge to deepen my knowledge of CMS and JAM Stack applications.
## Requirements
- [Nodejs](https://nodejs.org/en/)
- [Npm](https://www.npmjs.com/)
- [Yarn](https://yarnpkg.com/)
- [StripeCli](https://stripe.com/docs/stripe-cli) (For local stripe testing)## Technologies
- React
- NextJs
- Typescript
- Sass
- FaunaDB
- Stripe
- Prismic CMS
- Next Auth
- Jest## Layout
You can view the project layout via this link.
## Usage
You can clone it on your pc using the command:
```bash
git clone https://github.com/Lissone/ignews.git
cd ignews
```Install dependencies using:
```bash
yarn
#or
npm install
```Need to add environment variables:
```bash
# .\.env.local# Stripe
STRIPE_API_KEY=
NEXT_PUBLIC_STRIPE_PUBLIC_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_SUCCESS_URL=http://localhost:3000/posts
STRIPE_CANCEL_URL=http://localhost:3000# Github
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=# FaunaDB
FAUNADB_KEY=# Primisc CMS
PRISMIC_ENDPOINT=
PRISMIC_ACCESS_TOKEN=
```Commands used to use stripe webhooks locally:
```bash
./stripe.exe login./stripe.exe listen --forward-to localhost:3000/api/webhooks
```Run application:
```bash
yarn dev
#or
npm run dev
```## Demonstration
## License
Distributed under the MIT License. See `LICENSE` for more information.
Made with ❤️ by Lissone