- Next.js - Framework
- Prisma - ORM
- Tailwind - CSS
- shadcn/ui - Component Library
- NextAuth.js - Authentication
- react-email - Email Templates
- tRPC - API
- React-PDF - Viewing PDFs
- Vercel - Hosting
Want to get up and running quickly? Follow these steps:
- Fork this GitHub repository to your account
- Create a .env locally and fill in the required environment variables
-
Set up your
.env
file using the recommendations in the.env.example
file. Alternatively, runcp .env.example .env
to get started with our defaults. -
Install packages
yarn install
- Build project
yarn dev
- Create
cypress.env.json
(check out -cypress.example.env.json
) - To open the cypress UI.
yarn cypress
- To change the database schema, modify prisma.schema
- After making any changes to prisma.schema, run the command
sh npx prisma migrate dev
and then enter a suitable name for the changes made
npx prettier --write ./src
{
"Customer Information": { "Customer code": "string", ... },
"Shipping Information": { "Clearing Agent": "string", ... },
"Payment & Delivery Details": { "Delivery Date": "date", ... },
"Additional Remarks": { "Remarks": "string" }
}
- String: Text-based fields.
- Date: Fields in a standard date format.
- Array: Used for the "Container Type" field with predefined options.
This JSON structure defines custom fields for shipping, payment, and customer details. Ensure to validate the JSON against this structure and handle data types appropriately within your application.
{ "B/L": false, "Insurance": false, "Packing list": false, "Product Labels": false, "Commercial Invoice": false, "Certificate of Origin": false, "Certificate of Analysis": false }
This array defines a checklist for each quote.
pg_dump db_connection_string > backup.sql
pg_dump --dbname="postgresql://username:postgres@localhost:5432/tigerdb" > "backup_sep30_from_local.sql"
psql "" -a -f "backup_sep30_from_local.sql"