Skip to content

ตลาดนัดออนไลน์สําหรับตลาดพาร์คอิน

Notifications You must be signed in to change notification settings

Qu1etboy/virtual-parkin-market

Repository files navigation

Virtual ParkIn

Brief project description: What is this Next.js project all about?

This is a Next.js project bootstrapped with create-next-app. This project also uses Prisma for database interactions and is Dockerized for easy deployment and scalability.

Getting Started

Prerequisites

  • Node.js
  • Docker
  • Prisma CLI

Setting Environment Variables

Add your environment variables in a .env file. Example:

DATABASE_URL="your_database_url_here"
NEXT_PUBLIC_API_URL="your_api_url_here"

Installation

  1. Install dependencies

    pnpm install
  2. Docker Setup

    docker-compose up -d
  3. Prisma Setup

    cd apps/web
    npx prisma generate
    npx prisma db push

Setup stripe on local development

Install stripe cli

⚠️ Please look at the doc for instruction

Login to stripe (required stripe account)

stripe login

Forward event to a local webhook endpoint.

stripe listen --forward-to localhost:3000/api/stripe/webhook

Trigger events to test your webhooks integration.

stripe trigger payment_intent.succeeded

Finally, setup your key in .env file.

STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=

Usage

To start the development server, run:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 to view it in the browser.

Email

pnpm email

Visit http://localhost:8025/ to view the mailpit.

About

ตลาดนัดออนไลน์สําหรับตลาดพาร์คอิน

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages