Skip to content

BuildingFast/afterquote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Afterquote

Tech Stack

Local Development

Want to get up and running quickly? Follow these steps:

  1. Fork this GitHub repository to your account
  • Create a .env locally and fill in the required environment variables
  1. Set up your .env file using the recommendations in the .env.example file. Alternatively, run cp .env.example .env to get started with our defaults.

  2. Install packages

yarn install
  1. Build project
yarn dev

Setup Cypress Testing

  • Create cypress.env.json (check out - cypress.example.env.json)
  • To open the cypress UI.
yarn cypress

Making a change to prisma.schema (Running migrations)

  • 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

Prettier linting command

npx prettier --write ./src

Custom Field JSON Structure

Example custom field Structure

{
  "Customer Information": { "Customer code": "string", ... },
  "Shipping Information": { "Clearing Agent": "string", ... },
  "Payment & Delivery Details": { "Delivery Date": "date", ... },
  "Additional Remarks": { "Remarks": "string" }
}

Data Types

  • String: Text-based fields.
  • Date: Fields in a standard date format.
  • Array: Used for the "Container Type" field with predefined options.

Usage

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.

Custom Checklist List in Org Table

{ "B/L": false, "Insurance": false, "Packing list": false, "Product Labels": false, "Commercial Invoice": false, "Certificate of Origin": false, "Certificate of Analysis": false }

Usage

This array defines a checklist for each quote.

Database backup from Neon from the command line (with postgresql@14) -

pg_dump db_connection_string > backup.sql

Dump Database from local to database provider

pg_dump --dbname="postgresql://username:postgres@localhost:5432/tigerdb" > "backup_sep30_from_local.sql"

psql "" -a -f "backup_sep30_from_local.sql"

Releases

No releases published

Packages

No packages published

Languages