Skip to content

tadeasf/zizcon-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zizcon Next.js Application

This is a Next.js project with Directus as a headless CMS and Auth0 for authentication.

Prerequisites

  • Node.js 18+ or Bun 1.0+
  • Docker and Docker Compose (for Directus and containerized deployment)
  • Auth0 account with configured application
  • Git

Environment Setup

  1. Copy .env.example to .env:

    cp .env.example .env
  2. Update the .env file with your configuration:

  • Generate secure keys and tokens as indicated in the comments
  • Configure Auth0 credentials
  • Set appropriate URLs for your environment

Development Options

1. Full Local Development (Recommended for development)

Run Directus in Docker and Next.js locally:

# Start Directus
docker-compose -f docker-compose.directus.yml up -d

# Install dependencies
bun install

# Start Next.js development server
bun run dev

Access:

2. Docker Compose Development

Run both Directus and Next.js in Docker:

docker-compose up -d

Access:

3. Production Deployment

Option A: Separate Deployment

  1. Deploy Directus:

    docker-compose -f docker-compose.directus.yml up -d
  2. Deploy Next.js to your preferred platform (Vercel, etc.)

    • Set environment variables in your deployment platform
    • Ensure NEXT_PUBLIC_DIRECTUS_URL points to your Directus instance

Option B: Docker Compose Production

Use the production configuration:

# Uncomment the web-prod service in docker-compose.yml first
docker-compose up -d

Project Structure

  • /src - Next.js application source
    • /app - App router pages and API routes
    • /components - React components
    • /lib - Utility functions and configurations

Available Scripts

# Development
bun run dev     # Start development server

# Production
bun run build   # Build for production
bun run start   # Start production server

# Linting
bun run lint    # Run ESLint

Learn More

Deployment Notes

  • For production, ensure all environment variables are properly set
  • Configure CORS in Directus for your production domains
  • Set up proper SSL/TLS for both Directus and Next.js
  • Consider using a reverse proxy (e.g., Nginx) in production
  • Backup your Directus database and uploads regularly

About

Helping local non-profit nerd Con enter 21st century!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published