Git Product home page Git Product logo

ignews's Introduction

Ignews logo

Description   |    Requirements   |    Technologies   |    Layout   |    Usage   |    Demonstration


License Repo size Top lang Stars repo Forks repo Pull requests Last commit

Report bug · Request feature


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

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:

git clone https://github.com/Lissone/ignews.git
cd ignews

Install dependencies using:

yarn
#or
npm install

Need to add environment variables:

# .\.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:

./stripe.exe login

./stripe.exe listen --forward-to localhost:3000/api/webhooks

Run application:

yarn dev
#or
npm run dev

Demonstration

Demo Ignews

License

Distributed under the MIT License. See LICENSE for more information.

Made with ❤️ by Lissone


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.