Giter VIP home page Giter VIP logo

nokia-care / next-js-directus-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fredygerman/next-js-directus-starter

0.0 0.0 0.0 701 KB

A Next Js 13 with App router starter web app with Directus as a headless Cms and tailwind css for styling. This will include examples for common uses like authentication, data fetching, web sockets, file uploads, and more. Follow along on Twitter for updates.

Home Page: https://next-js-directus-starter-femmcn5zj-fdagreat.vercel.app/

JavaScript 3.70% TypeScript 94.81% CSS 1.49%

next-js-directus-starter's Introduction

Next js Directus Starter

Next.js 13 starter for building apps with Directus CMS Radix UI and Tailwind CSS.

Usage

git clone https://github.com/fredygerman/next-js-directus-starter.git

Change directory

cd next-js-directus-starter

Install Dependencies

pnpm install

Start Directus CMS

Make sure your Directus CMS is running and you have created a project.

Define Environment Variables

cp .env.example .env

Note : Make sure all the environment variables are defined in your .env file.

For the DIRECTUS_DEFAULT_ROLE_ID you can use the default role id from your directus project. For DIRECTUS_USER_CREATOR_TOKEN you need to create a user and a static token in your directus project.

Start the development server

pnpm run dev

You can now view the app in your browser at http://localhost:3000 ๐Ÿš€

Features

  • Next.js 13 App Directory
  • Directus CMS
  • Radix UI Primitives
  • Tailwind CSS
  • Icons from Lucide
  • Themes with next-themes and Tailwind CSS
  • Tailwind CSS class sorting, merging and linting.
  • Next js Server Side Components (SSC) & Client Side Components (CSC)
  • Next js Form Actions
  • Analytics with Posthog

Roadmap

  • [โœ…] Add Login and Register
  • [โœ…] Add Analytics
  • Add Installation Instructions Documentation
  • Add Dashboard Page
  • Add Simple Blog
  • Add SEO
  • Add Auth Guard
  • Add Password Reset and Forgot Password
  • Add User Profile
  • Add User Settings

Customizations and configurations.

  • Site Config (site.ts) for Site Information configuration (i.e Name, Title, Nav Bar items, Links etc).
  • Response Messages Config (messages.ts) for Creating user friendly response messages.
  • @t3-oss/env-nextjs For Environment Variables configuration. (env.mjs)
  • and other config files. (tailwind.config.js, postcss.config.js, next.config, prettier.config.js)

License

Licensed under the MIT license.

next-js-directus-starter's People

Contributors

fredygerman 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.