Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.38 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.38 KB

Ignews Blog 💻

ignews.mp4

📃 Sobre o projeto

Um blog privado que possui autenticação pelo Github com NextAuth, integração com Stripe para pagamentos e listagem de dados com GraphQL.

Funcionalidades

  • Autenticação pelo Github com NextAuth.
  • Pagamentos via Stripe.
  • Armazenamento de dados com FaunaDB.
  • Listagem de dados com GraphQL através do ApolloClient.

🚀 Tecnologias

💻 Cloning project

$ git clone https://github.com/IzaiasMorais/ignews.git && cd ignews
# Install the dependecies
$ npm i

# Create a OAuth App here o Github
1. Go to Settings / Developer settings / OAuth Apps
2. Create a new app
3. Set the homepage as 'https://yoururl/'
4. Set Authorization callback URL as 'http://yoururl/api/auth/callback'
5. Take the clientId and clientSecret key and replace in [...nextauth].ts on the code

# Run Stripe Webhook Listener
$ stripe listen --forward-to 'youurl/api/webhooks'

# Run the project
$ npm run dev