Skip to content

dreamc4t/dnd-app-old-legacy

Repository files navigation

D&D Shop App

Overview

This is a web application built with Next.js that allows users to create, store, manage and share shops for Dungeons & Dragons campaigns. The app supports user authentication, dynamic shop pages, and item management within shops.

Features

  • User Authentication: Implemented using NextAuth with custom credential provider.
  • Shop Management: Create, view, and delete shops and their associated items.
  • Copy Shop URL: Quickly copy the URL of a shop for sharing.
  • API Integration: Fetches data from a backend API to populate shop and item details.

Getting Started

Prerequisites

Make sure you have the following installed:

  • Node.js
  • npm

Installation

  • Clone the repository
  • npm install

Environment Variables

The following environment variables need to be configured:

  • NEXT_PUBLIC_environmentName= # Name of the environment (e.g., development, production)
  • NEXT_PUBLIC_BACKEND_URL= # URL of the backend API
  • NEXTAUTH_SECRET= # Secret for NextAuth session management

Create a .env.local file in the root of the project and populate it with these variables.

Running the App

To start the development server:

  • npm run dev For production build:
  • npm run build
  • npm start

License

This project is licensed under the MIT License.