Skip to content

Newsletter subscription application with payment via stripe.

Notifications You must be signed in to change notification settings

arianeborges/ignews

Repository files navigation

Logo

💻 DEMO

ignews demo

📜 About

The application was developed using the NextJS framework applying concepts such as external API consumption, Root API, Server Side Rendering (SSR), Static Site Generation (SSG), STRIPE for subscription payments, NextAuth for authentication with Github, FaunaDB to store the information of the user in a database and Prismic CMS for adding and managing the content of the posts.

🛠 Technologies

📋 Funcionalities

  • Login via Github
  • Subscription via Stripe
  • See all posts preview without login and subscription
  • See all posts when logged and subscribed

📕 Installation

Requirement

Create account and configure external services:

  • Stripe
  • FaunaDB
  • Prismic CMS

Service settings are located in the servicesConfig.md file at the root of the project.

# Clone this repository
$ git clone https://github.com/arianeborges/ignews.git

# Open the folder ignews
$ cd ignews

# Install the dependencies
$ npm install 

# At the root of the project, create a copy of the .env.local.example file
# Change the name of the copy to .env.local
# Fill in the environment variables according to the instructions
$ cp .env.local.example .env.local

# Run stripe listen to listen to webhook events
$ stripe listen --forward-to localhost:3000/api/webhooks 

# Execute the application
$ npm dev

Open http://localhost:3000 to view it in the browser.

About

Newsletter subscription application with payment via stripe.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published