Skip to content

moonpay/devops-challenge

Repository files navigation

Next.js Prisma Starter

A Next.js template using Prisma as the ORM.

Getting Started

1. Install Dependencies

pnpm install

2. Set Up Environment Variables

Create a .env file with your database connection:

echo 'POSTGRES_PRISMA_URL=postgres://postgres:postgres@localhost:5432/currencies?schema=public' > .env

3. Start the Database

docker compose up -d postgres

4. Seed the Database

pnpm db:seed

5. Start Development Server

pnpm dev

The app will be available at http://localhost:3000.

Useful Commands

Command Description
pnpm dev Start the development server
pnpm build Build for production
pnpm db:seed Push schema and seed the database
pnpm db:studio Open Prisma Studio to inspect the database

Docker

To run the full stack with Docker:

docker compose up -d

This starts both PostgreSQL and the Next.js app (once we have a Dockerfile)

About

DevOps Challenge Application

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •