Coder Social home page Coder Social logo

munichdeveloper / nextjs-directus-multitenant-starter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 203 KB

A nextjs Starter Template for directus CMS enriched with some multi tenancy features

License: MIT License

TypeScript 94.92% JavaScript 3.86% CSS 1.22%

nextjs-directus-multitenant-starter's Introduction

nextjs-directus-multitenant-starter

A nextjs Starter Template for directus CMS enriched with some multi tenancy features

What is this?

This nextjs starter is meant to be used with directus cms. If you don't know what directus is or why you could need it, this starter is also not for you ;-) This starter requires a running instance of directus, however i will not cover here, how to setup up directus, just the frontend integration with nextjs. Also, this starter here is based on this repository here from fredygerman - i have only added the multi tenancy functionality and adapted some things to my needs. If you think this starter template here is helpful, also consider to show some love to fredygerman. Also, if you don't need the multi tenancy functionality, consider using the starter from fredygerman directly.

Features of this starter

  • NextJS 13
  • Radix UI / Tailwind CSS
  • Lucide Icons
  • Themes with next-themes
  • Multi tenancy functionality

License

This repository and the including source code is licensed under the MIT license, so is the code from fredygerman.

How does it work?

I will only describe the multi tenancy functionality here, as this is what i have added. For documentation on the basic functionality of the starter, please refer to the repo of fredygerman. For documentation on directus, head over to directus.io

Get started

Create a .env file in the root of the project with the following entries:

  • DIRECTUS_URL -> The url of your self hosted directus instance, e.g. https://directus.your-domain.com
  • DIRECTUS_TOKEN_EXPIRATION_ADJUSTMENT -> The session lifetime in seconds, needs to be appropriate to your directus setting, e.g. 86400 for a sessions lifetime of a day
  • DIRECTUS_USER_CREATOR_TOKEN
  • DIRECTUS_DEFAULT_ROLE_ID

Multi tenancy

nextjs-directus-multitenant-starter's People

Contributors

munichdeveloper avatar

Watchers

 avatar

Forkers

nokia-care

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.