๐ฅ๏ธ Live Demo: Click here
To install and run the application, make sure that you have accounts created on Github, Stripe and FaunaDB. We'll create an app on Github to use OAuth configuration in the project with the library next-auth
.
Next Steps:
- Clone repository and install dependencies:
git clone https://github.com/leo-pro/ignews
cd ignews
yarn or npm install
- Creating a new file
.env.local
# Stripe
STRIPE_SUCCESS_URL=
STRIPE_CANCEL_URL=
STRIPE_API_KEY=
NEXT_PUBLIC_STRIPE_PUBLIC_KEY=
STRIPE_WEBHOOK_SECRET=
# Github
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# FaunaDB
FAUNADB_KEY=
# JWT
SIGNIN_KEY=
# Next Auth
NEXTAUTH_URL=
# Prismic CMS
PRISMIC_ACCESS_TOKEN=
PRISMIC_ENDPOINT=
- Running the project into your browser at http://localhost:3000
yarn dev
# or
npm run dev
- Generating static build to deploy
yarn build
# or
npm run build
Made with NextJS by Leonardo Alves