Skip to content

App developed with nextjs at chapter 2 from react class from ignite course by Rocketseat.

Notifications You must be signed in to change notification settings

teilorbarcelos/tsbnews

Repository files navigation

Printscreen of the project

TsbNews

This app was developed in a programming course of Nextjs of the Rocketseat online school, in the Ignite course for advanced developers.

This app is a JAM Stack, SSR & SSG app bootstrapped with [Create Next App] and, basically, it is a blog of news, the FaunaDB was used for store all the data, the login system was made with Github API, the shop system was made with stripe API and the posts system was made with prismic CMS, after all, I added the responsivity to layout for my own.

Technology

Here are the technologies used in this project.

  • @prismicio/client version 5.1.0,
  • @stripe/stripe-js version 1.22.0,
  • axios version 0.24.0,
  • faunadb version 4.4.1,
  • next version 12.0.7,
  • next-auth version 4.0.5,
  • prismic-dom version 2.2.6,
  • react version 17.0.2,
  • react-dom version 17.0.2,
  • react-icons version 4.3.1,
  • sass version 1.44.0,
  • stripe version 8.193.0

Services Used

  • FaunaDB
  • Github
  • Stripe.com
  • Prismic.io

Getting started

You can see the app runing here

But, if you want to run this app by yourself, simply create an account in all the services needed (github, faunadb, stripe and prisma cms) create a project in each one, and replace the configs in the .env.local.example, and after, rename it to .env.local, after it, run "yarn", in next run "stripe listen --forward-to localhost:3000/api/webhooks" and for last, open a new terminal and run "yarn dev" 🎉

How to use

This project is usefull for those that want to create a paid newsletter, you can publish news and sale the subscription for anyone and receive your incomes in the stripe dashboard.

Links

Versioning

0.1.0

Authors

Learn More

You can learn more in the [Next documentation].

I hope it help you like it helped me too! Thanks for see it and give a repo star if you like it!

TsbNews

############################################################

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

App developed with nextjs at chapter 2 from react class from ignite course by Rocketseat.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published