Giter Site home page Giter Site logo

directuxt's Introduction

Nuxt-Directus Dockerized Deployment

Forked from Intevel/nuxt-directus, this project dockerizes the Nuxt-Directus application for easy deployment.

Features

Feature Description
🐳 Dockerized Deployment Simplifies the setup and deployment process.
🐰 Directus Integration Open-source headless CMS and API.
πŸ› οΈ Nuxt Devtools Debugging tools for Nuxt.js.
πŸ–₯️ Nuxt UI A UI Kit for building Nuxt modules and projects.
🍬 Tailwind CSS Add Tailwind CSS to your Nuxt Applications.
πŸŒ— Nuxt Color Mode Dark and Light mode with auto detection.
πŸ›Έ ufo Utilities to work with URLs across Nuxt projects.
πŸ“œ TypeScript Support Ensures type safety in your project.
πŸš€ Nuxt 3 Compatible with the latest version of Nuxt.
πŸ”— RESTful methods Convenient way to access or update resources on the server.
πŸ”‘ Environment Variables Easily configure your app settings.
  1. Clone the repository:

    git clone https://github.com/srjrol/nuxt-directus-docker
    cd nuxt-directus-docker
  2. Setup your environment variables: Copy the .env.example to a new file named .env and update the variables as needed.

    cp .env.example .env

Deployment

  1. Build and run the Docker containers:

    docker-compose up --build -d
  2. Access the application:

    • πŸš€ Nuxt App: http://localhost:3000
    • 🐰 Directus Admin: http://localhost:8055

Environment Variables Reference Table

Variable Description
POSTGRES_USER PostgreSQL username
POSTGRES_PASSWORD PostgreSQL password
POSTGRES_DB PostgreSQL database name
DIRECTUS_URL Directus URL
DIRECTUS_KEY Directus Key
DIRECTUS_SECRET Directus Secret
ADMIN_EMAIL Admin email for Directus
ADMIN_PASSWORD Admin password for Directus
PUBLIC_URL Public URL for Directus
CONTENT_SECURITY_POLICY_DIRECTIVES__FRAME_ANCESTORS Content Security Policy Directives for frame ancestors
API_URL API URL for Nuxt
NUXT_PUBLIC_DIRECTUS_URL Public Directus URL for Nuxt
NUXT_PUBLIC_API_BASE Public API base URL for Nuxt

Integrate to your application.

Features

  • Nuxt 3 ready
  • Handle authentication
  • RESTful methods
  • TypeScript Support

Setup

  1. Clone the repository:
git clone https://github.com/srjrol/nuxt-directus-docker.git
cd nuxt-directus-docker

Basic usage

Development

  1. Clone this repository
  2. Install dependencies using pnpm install or npm install
  3. Run pnpm dev:prepare or npm run dev:prepare
  4. Start development server using pnpm dev or npm run dev

Todo

  • Optimize Dockerfile for faster build times.
  • Add a Makefile to simplify build and deploy commands.
  • Implement a logging system for troubleshooting and monitoring.
  • Add authentication and authorization for enhanced security.
  • Upgrade to the latest versions of Nuxt and Directus.
  • Document the setup and deployment process in more detail.
  • Create a backup and restore process for the database.
  • Add CI/CD integration for automated testing and deployment.
  • Improve error handling and add proper error messages.
  • Include a feature for data migration and schema updates.

License

Copyright (c) 2022 Sean Jennings, originally developed by Conner Luka Bachmann MIT License

Additional Resources

directuxt's People

Contributors

intevel avatar codiam avatar srjrol avatar casualmatt avatar danielwinkelmann avatar renovate[bot] avatar amerkay avatar sandros94 avatar craigharman avatar renovate-bot avatar nmathar avatar rashidpathiyil avatar xnacly avatar dependabot[bot] avatar vicfleur avatar linkb15 avatar ranseur92 avatar dwaring87 avatar scherii avatar halwesit avatar mklueh avatar nainterceptor avatar atinux avatar ymilhahn avatar dochoss avatar drennvinn 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.