Skip to content

loadpartner/tms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lptms

Deploy to DO

The Open Source Transportation Management System for Freight Brokers

Get involved

🗨️ Discord Community

📰 Subscribe to the newsletter

Tech Stack

Laravel + Inertia.js + React

Development

A local environment can be setup quickly using Laravel Sail and our docker configurations.

Fresh Setup

Standing up the development environment after cloning the repository should follow these steps:

docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v "$(pwd):/var/www/html" \
    -w /var/www/html \
    laravelsail/php84-composer:latest \
    composer install --ignore-platform-reqs

Can't find sail in your path? Add to your bashrc/zshrc

export PATH=./vendor/bin:$PATH

Copy env file

cp .env.example .env

Up sail

sail up -d

Setup database

sail artisan migrate

Install npm modules

sail npm install

Generate APP_KEY

sail artisan key:generate

Run Vite

sail npm run dev

[OPTIONAL] Setup Test Data

sail artisan dev:refresh

This will create test users with the following credentials:

Email Password
[email protected] password
[email protected] password

Setting up Mailpit

  • Ensure Mailpit is not commented out in docker-compose.yml
  • Visit http://localhost:8025 (or whatever you have specified in docker-compose.yml FORWARD_MAILPIT_DASHBOARD_PORT)
  • Update the following .env settings:
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025 # or whatever you have specified in docker-compose.yml FORWARD_MAILPIT_PORT