Features • Run Project • Technologies • Layout • Deploy • Author • License
- Read posts
- Sign In with Github OAuth
- Subscription system
- Payment with stripe
1️⃣ Clone project and access its folder:
$ git clone https://github.com/jtiagosantos/ig.news.git
$ cd ig.news
2️⃣ Install dependencies:
$ yarn ou npm i
3️⃣ Add environment variables:
#Stripe
STRIPE_API_KEY= xxxxxxxxxxxxx
NEXT_PUBLIC_STRIPE_PUBLIC_KEY= xxxxxxxxxxxxx
STRIPE_PRICE_API_ID= xxxxxxxxxxxxx
STRIPE_WEBHOOK_SECRET= xxxxxxxxxxxxx
STRIPE_SUCCESS_URL= xxxxxxxxxxxxx
STRIPE_CANCEL_URL= xxxxxxxxxxxxx
#Github
GITHUB_CLIENT_ID= xxxxxxxxxxxxx
GITHUB_CLIENT_SECRET= xxxxxxxxxxxxx
#FaunaDB
FAUNADB_KEY= xxxxxxxxxxxxx
#Prismic CMS
PRISMIC_ENDPOINT= xxxxxxxxxxxxx
PRISMIC_ACCESS_TOKEN= xxxxxxxxxxxxx
4️⃣ Run tests:
$ yarn test ou npm run test
5️⃣ Start project:
$ yarn dev ou npm run dev
The following tools were used in the construction of project:
You can view the project layout through the link below:
This project is under license MIT.