Skip to content

KRochaS/ignews

Repository files navigation

📊 About

Developed using ReactJS and NextJS, the project is a technology blog where users can subscribe to gain access to the posts.

Applying concepts such as external API consumption, Server Side Rendering (SSR), Static Site Generation (SSG), Stripe for subscription payments, NextAuth for GitHub authentication, FaunaDB for storing user information in a database, and Prismic CMS for adding and managing post content.

📚 Technologies e libs

🧪 Unit Tests

Components

  • ActiveLink
    • renders correctly
    • adds active class if the link as currently active
  • Header
    • renders correctly
  • SignInButton
    • renders correctly when user is not authenticated
    • renders correctly when user is authenticated
  • SubscribeButton
    • renders correctly
    • redirect to signin when not authenticated
    • redirect to post when user is authenticated and had an active subscription

    Pages

  • Home
    • renders correctly
    • loads initial data
  • Posts
    • renders correctly
    • redirects user if no subscription is found
    • loads initial data
  • Post
    • renders correctly
    • loads initial data
  • PostPreview
    • renders correctly
    • redirects user to full post when user is subscribed
    • loads initial data

💻 Layout