4.0 KiB
DocQube Landing Page
DocQube is an all-in-one document management and AI platform that unites four core products:
- Drive: Document management + AI
- PDF Editor: True-reflow editing
- Workflows: Route, approve, sign
- Sign: Verified e-signatures
This repository contains the Next.js marketing landing page built to showcase DocQube's solutions for various audiences including Enterprise, Legal, Real Estate, and Operations.
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Environment & Build Scripts
This project is configured with multiple environments for seamless deployments and testing.
Environment Variables
.env: Used bynpm run localand points tohttp://localhost:5173/login..env.test: Used bynpm run testandnpm run build:test; points tohttps://docqubeapp-test.maskantech.in/login..env.production: Used bynpm run build:productionandnpm run prod; points tohttps://app.docqube.com/login.
Note: Environment files (.env*) are ignored in Git to keep variables secure. Make sure you create them locally if you clone this repository.
Build Scripts
npm run local: Starts the local development server using.env.npm run test: Starts the development server using.env.test.npm run build:local: Builds the application using.env.npm run build:test: Builds the application using.env.test.npm run build:production: Builds the application using.env.production.npm run prod: Starts the production server using.env.production.
Production Deployment Artifact
The Next.js configuration uses standalone output. Build the production artifact with:
npm ci
npm run build:production
The deployment must include:
Prepare the standalone artifact after building:
cp -r public .next/standalone/
cp -r .next/static .next/standalone/.next/
On Windows PowerShell, use this equivalent sequence because cp does not merge existing directories:
Remove-Item -Recurse -Force .next\standalone\public -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force .next\standalone\.next\static -ErrorAction SilentlyContinue
Copy-Item public .next\standalone\public -Recurse
Copy-Item .next\static .next\standalone\.next\static -Recurse
Start the standalone server with:
node .next/standalone/server.js
On Windows PowerShell:
$env:PORT = "3000"
$env:HOSTNAME = "127.0.0.1"
node .next\standalone\server.js
For Nginx deployment, run the server on an internal port and reverse proxy to it:
PORT=3000 HOSTNAME=127.0.0.1 node .next/standalone/server.js