Skip to content

nxr-deen/landco-business-platform

Repository files navigation

LandCo - Business Platform

A modern business platform built with Next.js, Prisma, and PostgreSQL.

Features

  • User authentication and authorization
  • Subscription management
  • Customer management
  • Support ticket system
  • FAQ management
  • Modern UI with Tailwind CSS

Prerequisites

  • Node.js 18+
  • PostgreSQL
  • npm or yarn

Setup

  1. Clone the repository:
git clone https://github.com/nxr-deen/landco-business-platform.git
cd landco-business-platform
  1. Install dependencies:
npm install
  1. Create a .env.local file in the root directory with the following content:
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/landco?schema=public"
JWT_SECRET="your-super-secret-key-123456789"
  1. Set up the database:
# Create the database
createdb landco

# Run Prisma migrations
npx prisma migrate dev --name init
  1. Generate the Prisma client:
npx prisma generate
  1. Start the development server:
npm run dev

API Endpoints

Authentication

  • POST /api/auth/register - Register a new user
  • POST /api/auth/login - Login and get JWT token

Subscriptions

  • GET /api/subscriptions - Get current subscription
  • POST /api/subscriptions - Update subscription plan

Customers

  • GET /api/customers - List all customers
  • POST /api/customers - Create a new customer

Support

  • GET /api/support - List all support tickets
  • POST /api/support - Create a new support ticket

FAQs

  • GET /api/faqs - List all FAQs (with optional category filter)
  • POST /api/faqs - Create a new FAQ (admin only)

Development

  • Run the development server: npm run dev
  • Build for production: npm run build
  • Start production server: npm start
  • Run linting: npm run lint

Database Management

  • Generate Prisma client: npm run prisma:generate
  • Run migrations: npm run prisma:migrate
  • Open Prisma Studio: npx prisma studio

License

MIT

About

A modern SaaS platform for business growth built with Next.js 15, React 19, TypeScript, and Tailwind CSS

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published