• Stars
    star
    313
  • Rank 133,714 (Top 3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🎨 Boilerplate for building applications using Strapi and Next.js

Logo

Twitter: Nirmalya Ghosh

This is a boilerplate for building applications using Strapi and Next.js. This boilerplate consists of the following:

  1. frontend: Next.js application
  2. backend: Dockerized Strapi application

Overview

This boilerplate is built using the following technologies:

  1. Chakra UI
  2. Emotion
  3. GraphQL
  4. Apollo
  5. NextAuth
  6. TypeScript

It supports GraphQL Query and Mutation out of the box.

Requirements

  1. Node.js
  2. npm
  3. Docker

Packages

1. Frontend: Next.js application

This application is the primary user-facing application. Once it’s up and running (see Development section), it’s available on http://localhost:3000/.

2. Backend: Dockerized Strapi application

Strapi is the leading open-source headless CMS. It’s 100% Javascript, fully customizable and developer-first.

Installation

1. Clone the application

git clone https://github.com/ghoshnirmalya/nextjs-strapi-boilerplate

2. Install necessary dependencies for the frontend application

cd frontend && yarn install

3. Create a .env file and copy the contents from .env.example (present in frontend directory)

We might need to run the following command:

source .env

4. Create and copy the Google client credentials

Create a new Google OAuth Client and copy the credentials (Client ID and Client Secret) in your .env file.

5. Start the frontend application

From the frontend directory, we can run the following command to start our Next.js frontend application:

yarn dev

The above command will start the frontend application on http://localhost:3000/.

6. Go inside the directory of the backend package on another terminal window

cd backend

7. Start docker-compose

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/graphql.

8. Configure Strapi

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

Authenticated user role

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

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

c. Enable the Google provider.

Enable the Google provider

Enable informations for the Google provider

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

Deployment

Frontend application

Click on the button below to deploy the frontend application on Vercel. You'll need to sign up for a free Vercel account.

Deploy with Vercel

Backend application

We're still working on it.

Other interesting repositories

  1. Hasura Next.js Boilerplate
  2. Hasura Next.js Trello Clone
  3. React Search Box
  4. LinkedIn Clone using Create React App

License

This project is licensed under the MIT License.

More Repositories

1

nirmalyaghosh.com

A personal portfolio built using Next.js, Chakra UI, SEO, MDX, and TypeScript
MDX
296
star
2

nextjs-hasura-boilerplate

🎨 Boilerplate for building applications using Hasura and Next.js
TypeScript
291
star
3

react-search-box

🎨 An autocomplete search box built with and for React
TypeScript
234
star
4

writy

Generate beautiful HTML files without writing any code. Still in beta!
TypeScript
100
star
5

linkedin-clone-react-frontend

πŸš€ Frontend for a software similar to LinkedIn
JavaScript
66
star
6

nextjs-hasura-trello-clone

A clone of Trello built using Hasura and Next.js
TypeScript
61
star
7

reddit-clone

⬆️ ⬇️ This is a sample application for building a clone of Reddit using React and Firebase
JavaScript
55
star
8

product-hunt-clone-using-nextjs-and-hasura

🎨 Accompanying project for "Building a Product Hunt clone app using Hasura and Next.js" tutorial on LogRocket blog
JavaScript
53
star
9

building-monorepos-using-lerna

πŸ‰ Sample application which shows how to build monorepos using Lerna
JavaScript
51
star
10

user-profile-in-php-and-mysql

A simple user profile page using PHP and MySQLi
JavaScript
31
star
11

nextjs-authentication-using-strapi-and-next-auth

Application show how Next.js can be authenticated using Strapi and NextAuth.
JavaScript
24
star
12

linkedin-clone-rails-backend

πŸš€ API to power a software similar to LinkedIn
Ruby
16
star
13

building-redux-from-scratch

Building Redux from scratch
JavaScript
16
star
14

social-app-api-in-elixir

Elixir
15
star
15

testing-next.js-apps

End to End for Next.js apps
JavaScript
13
star
16

twitter-clone-using-nextjs-and-prisma

🎨 Accompanying project for "Building a Twitter clone app using Prisma and Next.js" tutorial
TypeScript
13
star
17

screenshot-mockup

An app to generate mockups based on your images.
TypeScript
10
star
18

user-profile-using-php-and-mysqli

JavaScript
10
star
19

the-fullstack-app

Demo of a fullstack app using Next.js, Prisma, and NextAuth.
TypeScript
7
star
20

nextjs-graphcms

Sample application built using GraphCMS, Next.js and TailwindCSS
JavaScript
7
star
21

astro-md

Markdown blog using Astro
CSS
6
star
22

product-hunt-clone-using-strapi-react-next-docker

TypeScript
6
star
23

forum-script-using-php-and-mysql

PHP
5
star
24

build-components-using-tailwind

CSS
3
star
25

introduction-to-msw

JavaScript
3
star
26

feedback

Collect feedback for your designs.
TypeScript
2
star
27

gatsby-tailwind-minimal-starter

A starter template for building JAMStack apps using Gatsby and Tailwind CSS
TypeScript
2
star
28

crank.js-tailwind-css

Sample application built using Crank.js and TailwindCSS
JavaScript
2
star
29

nextjs-react-query-faunadb

🎨 Boilerplate for building applications using Fauna, React Query and Next.js
TypeScript
2
star
30

moon.js-tailwind-css

Sample application built using Moon.js and TailwindCSS
JavaScript
1
star
31

astro-docs-example

CSS
1
star
32

react-buttercms-storybook

JavaScript
1
star
33

prisma-next.js

Sample application built using Prisma and Next.js.
JavaScript
1
star
34

react-pagination-box

A pagination component built using React.js
TypeScript
1
star