Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rotaractgalgotias/admin-dashboard

A web-based admin dashboard for Rotaract Galgotias, built with Next.js and PostgreSQL. This application provides tools for managing events, members, and activities within the Rotaract community. Easily deployable using Docker with hot reloading support for development.
https://github.com/rotaractgalgotias/admin-dashboard

nextjs postgres prisma server-action shadcn-ui tailwindcss

Last synced: 11 days ago
JSON representation

A web-based admin dashboard for Rotaract Galgotias, built with Next.js and PostgreSQL. This application provides tools for managing events, members, and activities within the Rotaract community. Easily deployable using Docker with hot reloading support for development.

Awesome Lists containing this project

README

        

# Rotaract Admin Dashboard

This project is a Next.js application configured to use Docker for both the app and a PostgreSQL database, optimized for development with hot reloading.

## Features

- **Next.js** for the frontend
- **Docker** setup for easy deployment and consistent development environments
- **PostgreSQL** as the database
- **Prisma** as the ORM
- **Hot Reloading** for development

## Prerequisites

Ensure you have the following installed on your machine:

- [Docker](https://docs.docker.com/get-docker/)
- [Docker Compose](https://docs.docker.com/compose/)

## Getting Started

### 1. Clone the Repository

```bash
git clone
cd
```

### 2. Set Up Environment Variables

Create a `.env` file in the root directory and add the following variables:

```env
DATABASE_URL="postgresql://postgres:postgres@db:5432/mydatabase"
AUTH_SECRET=""
AUTH_TRUST_HOST=true
RESEND_API_KEY=""
DEPLOY_HOOK=""
```

### 3. Install Dependencies

```bash
npm install
```

### 4. Generate Prisma Client

```bash
npx prisma generate
```

### 5. Build and Run the Docker Containers

```bash
docker-compose up -d
```

### 6. Access the Application

Open your browser and navigate to `http://localhost:3000` to see the application running.