A modern business platform built with Next.js, Prisma, and PostgreSQL.
- User authentication and authorization
- Subscription management
- Customer management
- Support ticket system
- FAQ management
- Modern UI with Tailwind CSS
- Node.js 18+
- PostgreSQL
- npm or yarn
- Clone the repository:
git clone https://github.com/nxr-deen/landco-business-platform.git
cd landco-business-platform
- Install dependencies:
npm install
- 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"
- Set up the database:
# Create the database
createdb landco
# Run Prisma migrations
npx prisma migrate dev --name init
- Generate the Prisma client:
npx prisma generate
- Start the development server:
npm run dev
- POST
/api/auth/register
- Register a new user - POST
/api/auth/login
- Login and get JWT token
- GET
/api/subscriptions
- Get current subscription - POST
/api/subscriptions
- Update subscription plan
- GET
/api/customers
- List all customers - POST
/api/customers
- Create a new customer
- GET
/api/support
- List all support tickets - POST
/api/support
- Create a new support ticket
- GET
/api/faqs
- List all FAQs (with optional category filter) - POST
/api/faqs
- Create a new FAQ (admin only)
- Run the development server:
npm run dev
- Build for production:
npm run build
- Start production server:
npm start
- Run linting:
npm run lint
- Generate Prisma client:
npm run prisma:generate
- Run migrations:
npm run prisma:migrate
- Open Prisma Studio:
npx prisma studio
MIT