All Projects → ghoshnirmalya → Nextjs Strapi Boilerplate

ghoshnirmalya / Nextjs Strapi Boilerplate

Licence: mit
🎨 Boilerplate for building applications using Strapi and Next.js

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Nextjs Strapi Boilerplate

React Hipstaplate
A ReactJS full-stack boilerplate based on typescript with ssr, custom apollo-server and huge stack of modern utilities which will help you to start your own project
Stars: ✭ 74 (-2.63%)
Mutual labels:  graphql, apollo
Apollo Upload Client
A terminating Apollo Link for Apollo Client that allows FileList, File, Blob or ReactNativeFile instances within query or mutation variables and sends GraphQL multipart requests.
Stars: ✭ 1,176 (+1447.37%)
Mutual labels:  graphql, apollo
Subscriptions Transport Sse
A Server-Side-Events (SSE) client + server for GraphQL subscriptions
Stars: ✭ 55 (-27.63%)
Mutual labels:  graphql, apollo
Apollo Invalidation Policies
An extension of the Apollo 3 cache with support for type-based invalidation policies.
Stars: ✭ 55 (-27.63%)
Mutual labels:  graphql, apollo
Apollo Mocked Provider
Automatically mock GraphQL data with a mocked ApolloProvider
Stars: ✭ 70 (-7.89%)
Mutual labels:  graphql, apollo
A Pop
🎶 HD Music Streaming and Sharing Web App
Stars: ✭ 55 (-27.63%)
Mutual labels:  graphql, apollo
Apollo Server Vercel
⚫ Production-ready Node.js GraphQL server for Vercel Serverless Functions
Stars: ✭ 69 (-9.21%)
Mutual labels:  graphql, apollo
Apollo Redux Form
Redux forms powered by Apollo
Stars: ✭ 52 (-31.58%)
Mutual labels:  graphql, apollo
Guide To Graphql
A Frontend Developer's Guide to GraphQL (Fluent Conf 2018)
Stars: ✭ 59 (-22.37%)
Mutual labels:  graphql, apollo
Next React Graphql Apollo boostrap
React + GraphQL + Next.js project architecture that I play with right now
Stars: ✭ 59 (-22.37%)
Mutual labels:  graphql, apollo
Laravel Vuejs.com
Laravel and VueJs Blog, using Laravel nova, GraphQL, NuxtJs, Apollo and ...more
Stars: ✭ 54 (-28.95%)
Mutual labels:  graphql, apollo
Cynthesize Frontend
Frontend written in Angular 7 and deployed GraphQL for Cynthesize. Development build: https://cynthesize-develop.netlify.com
Stars: ✭ 65 (-14.47%)
Mutual labels:  graphql, apollo
Graphql Upload
Middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
Stars: ✭ 1,071 (+1309.21%)
Mutual labels:  graphql, apollo
Apollo Cache Persist
🎏 Simple persistence for all Apollo Cache implementations
Stars: ✭ 1,078 (+1318.42%)
Mutual labels:  graphql, apollo
Graphql Modules
⚠️ [DEPRECATED] GraphQL module library for Apollo.
Stars: ✭ 53 (-30.26%)
Mutual labels:  graphql, apollo
Blaze Apollo
Blaze integration for the Apollo Client
Stars: ✭ 56 (-26.32%)
Mutual labels:  graphql, apollo
Omdb Graphql Wrapper
🚀 GraphQL wrapper for the OMDb API
Stars: ✭ 45 (-40.79%)
Mutual labels:  graphql, apollo
Graphql Advanced Projection
Fully customizable Mongoose/MongoDB projection generator.
Stars: ✭ 46 (-39.47%)
Mutual labels:  graphql, apollo
Erxes Api
API for erxes
Stars: ✭ 57 (-25%)
Mutual labels:  graphql, apollo
Apollo Link Sentry
Apollo Link middleware which enriches SentryJS with GraphQL data
Stars: ✭ 63 (-17.11%)
Mutual labels:  graphql, apollo

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].