Giter Club home page Giter Club logo

next-supabase-strapi-apollo's Introduction


Logo

Strapi v4, Nextjs 13, Supabase, Apollo Client Starter Template with Typescript

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

This repository provides a full-stack application template with Nextjs, Strapi, Apollo-Client, Graphql and Supabase, which allows you to create a fully functional web application with user authentication, database connectivity, and dynamic frontend rendering. The template also uses the pages directory in Nextjs for easy routing and building of pages.

Goal

The main goal of this project is to provide an easy way to get your MVP up and running fast. Strapi and GraphQL serve as an easy way to design your API, Supabase provides easy PostgreSQL cloud database integration, and Apollo Client allows you to query the API and cache on Next.js without using middleware cache.

(back to top)

Built With

Next React

This template uses the following technologies:

  • Strapi v4 - a headless CMS that provides database connectivity and user authentication
  • Nextjs 13 - a React framework that provides server-side rendering and other features for building web applications
  • Supabase - a cloud database service that provides PostgreSQL database hosting and user authentication
  • Apollo Client - a state management library for building GraphQL-based applications

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.

To get started with this template, follow these steps:

  1. Clone the repository: git clone <https://github.com/username/repo-name.git>
  2. Install dependencies for Strapi: cd strapi && npm install
  3. Follow the example .env.exaple file in the strapi and nextjs directory and add your env variables
  4. Start the Strapi server: npm run develop
  5. Install dependencies for Nextjs: cd ../nextjs && npm install
  6. Start the Nextjs server: npm run dev

That's it! You should now be able to access the application at http://localhost:3000 and strapi server at http://localhost:1337

important: make sure to set up the roles permissions on each collection that you want to query in the users role and permissions, strapi comes with authenticated and public roles each role must be defined with permissions

(back to top)

Usage

This template provides a basic application with user authentication and a simple frontend that displays a list of items from the database. To use this template as the basis for your own application, you can modify the Strapi models to reflect your own data structure, and modify the Nextjs pages to display your own content.

(back to top)

Roadmap

  • Connect Apollo Client with frontend and backend
  • Set up strapi with supabase
  • Add authentication flow: maybe using Supabase auth.user table or strapi plugins and permissions
  • Multi-language Support

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt in each dir for more information.

(back to top)

Contact

Carlos Zapata - @apticus - [email protected]

Project Link: https://github.com/your_username/repo_name

(back to top)

next-supabase-strapi-apollo's People

Watchers

Carlos Zapata avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.