This is a blog project developed on Rocketseat's Ignite program.
-Typescript.js -Next.js -Next-Auth -Stripe -Prismic.io -Faunadb -Axios -SASS
-In the home page the user can subscribe to the blog being directed to the stripe payments api or sign in the with github account;
-In the posts page, the user will see a list of all the post on the blog.
-in the specific post page, if the user does not have a subscription or is not logged in, he will see a small snippet of the post. If not, he will see the full post.
First, run the development server:
npm run dev
# or
yarn dev
Then, you need run the stripe webhooks server:
(In this case I need to download the stripe cli and add a new script to package.json to run it)
"scripts": {
"stripe": "stripe-cli/stripe listen --forward-to http://localhost:3000/api/webhooks",
}
npm run stripe
# or
yarn stripe
Open http://localhost:3000 with your browser to see the result.