Skip to content

Repository files navigation

DRA Industry 4.0 Assessment Platform

A comprehensive platform for managing and conducting company assessments based on the "DRA - Industry 4.0” Maturity Assessment Framework. This platform allows for tracking of assessments, managing companies, and provides a dashboard for assessors.

Features

  • User Authentication: Secure sign-in and sign-up functionality for different user roles.
  • Dashboard: An interactive dashboard for assessors and administrators to get an overview of audits and other metrics.
  • Company Management: CRUD operations for managing companies.
  • Audit Management: Create, update, and track audits for companies.
  • Evaluations: Assessors can perform evaluations as part of an audit.
  • Reporting: Generate reports based on audit data.
  • Notifications: Users receive notifications about important events.

Tech Stack

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd DRA_Industry_4.0_Assessment_Platform
  2. Install dependencies:

    npm install
  3. Set up the database:

    • Create a .env file in the root of the project.
    • Add your database connection string to the .env file:
      DATABASE_URL="postgresql://USER:PASSWORD@HOST:PORT/DATABASE"
      
    • Run the database migrations:
      npx prisma migrate dev
    • (Optional) Seed the database with initial data:
      npm run prisma:seed
  4. Run the development server:

    npm run dev

    The application will be available at http://localhost:3446.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file:

  • DATABASE_URL: The connection string for your PostgreSQL database.
  • NEXTAUTH_URL: The base URL for your application. For development, this will be http://localhost:3446.
  • NEXTAUTH_SECRET: A secret key for NextAuth.js. You can generate one using openssl rand -hex 32.

Database

This project uses Prisma as the ORM to interact with a PostgreSQL database. The database schema is defined in prisma/schema.prisma.

To apply any changes made to the schema, run:

npx prisma migrate dev --name <migration-name>

Available Scripts

  • npm run dev: Runs the app in development mode.
  • npm run build: Builds the app for production.
  • npm run start: Starts a production server.
  • npm run lint: Lints the codebase.
  • npm run prisma:seed: Seeds the database.

Project Structure

The project follows a standard Next.js App Router structure.

  • src/app/api: API routes for the application.
  • src/app/(admin|assessor|dashboard): Different layouts and pages for user roles.
  • src/components: Reusable React components.
  • src/lib: Utility functions and libraries.
  • prisma: Database schema, migrations, and seed scripts.
  • public: Static assets.

About

Next.js platform for running Industry 4.0 maturity assessments, audits, and reporting.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages