⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️⚛️
React news web application based on authentication and subscription. Built with Next.js using Typescript, SCSS and technologies like Stripe, FaunaDB and Prismic. Project idealized and designed by Tiago Luchtenberg/Rocketseat and built from Rocketseat's online course Ignite.
Inside the root directory, run the command yarn install
.
For this application to work, you need to integrate it to Github, Stripe, FaunaDB and Prismic by getting your Secret Keys and updating .env-sample
to an .env.local
file with all environment variables properly stored.
Run the command yarn dev
to start the web application. Open http://localhost:3000 with your browser to see the result.
You can start editing the initial page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on (EXAMPLE) http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
Use the Stripe CLI to forward Stripe events to the local webhook endpoint on your server by running the command stripe listen --forward-to localhost:3000/webhooks
. More documentation.