Skip to content

Commit

Permalink
Merge pull request #1233 from ghoshnirmalya/feat/update-docs-for-next…
Browse files Browse the repository at this point in the history
…js-strapi-boilerplate

Update docs for Strapi Next.js Boilerplate
  • Loading branch information
ghoshnirmalya authored Aug 31, 2020
2 parents 92ffa76 + 77e4cf3 commit 78db0c4
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pages/docs/nextjs-strapi-boilerplate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
```

We might need to run the following command:

```bash
source .env
```

4. **Create and copy the Google client credentials**

Create a new [Google OAuth Client](https://console.developers.google.com/apis/credentials/oauthclient) and copy the credentials (Client ID and Client Secret) in your .env file.
Expand Down Expand Up @@ -99,6 +105,26 @@ docker-compose up

We need to start Docker and then run the above command which will change the current directory to the backend package’s directory and then start the backend package. If everything goes well, it’ll be up and running on [http://localhost:1337/v1/graphql](http://localhost:1337/v1/graphql).

8. **Configure Strapi**

a. Allow permissions for all operations on the Feed content-type for Authenticated users.

![Authenticated user role](/images/content/nextjs-strapi-boilerplate/1.png)

![Allow permissions for all operations on the Feed content-type for Authenticated users](/images/content/nextjs-strapi-boilerplate/2.png)

b. Allow permissions for all operations on the Feed content-type for Authenticated users as well.

![Allow permissions for all operations on the Feed content-type for Authenticated users as well](/images/content/nextjs-strapi-boilerplate/3.png)

c. Enable the Google provider.

![Enable the Google provider](/images/content/nextjs-strapi-boilerplate/4.png)

![Enable informations for the Google provider](/images/content/nextjs-strapi-boilerplate/5.png)

d. Click on the "Done" button and now we can log into our Next.js application using our Google account.

## Deployment

1. **Frontend**
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 78db0c4

@vercel
Copy link

@vercel vercel bot commented on 78db0c4 Aug 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.