This repository contains the local development setup for the project. Follow these instructions to get started.
- Docker and Docker Compose
- Make
- mkcert for local SSL certificates
- Git
- Install mkcert and set up local CA:
# On macOS with Homebrew
brew install mkcert
mkcert -install
# On Ubuntu/Debian
sudo apt install mkcert
mkcert -install- Clone this repository:
git clone <this-repo-url> project-setup
cd project-setup- Create and configure your environment:
cp .env.example .envEdit the '.env' file and set:
- 'PROJECT_NAME': Your project name (used for container names and domains)
- 'REPO_URL': Your project's Git repository URL
- 'DOMAIN_PREFIX': Domain prefix for local development
- Run the setup:
make setupmake setup # Initial project setup
make start # Start the Docker containers
make stop # Stop the Docker containers
make reset-db # Reset and seed the database
make clear-cache # Clear application caches
make reset-certs # Generate new SSL certificates
make sort-proxy # Configure trusted proxiesThe project uses mkcert for local SSL certificates. The certificates are automatically generated during setup for the following domains:
- '${PROJECT_NAME}.dev'
- 'api.${PROJECT_NAME}.dev'
- 'platform.${PROJECT_NAME}.dev'
- 'dev-platform.${PROJECT_NAME}.dev'
To regenerate certificates manually, run:
make reset-certs-
If you see certificate errors:
- Ensure mkcert is installed and initialized ('mkcert -install')
- Try regenerating certificates with 'make reset-certs'
-
If the setup fails:
- Check your .env configuration
- Ensure Docker is running
- Check if the repository URL is accessible
The setup expects the following directory structure:
parent-directory/
├── project-setup/ # This repository
└── ${PROJECT_NAME}/ # Your main project repository
Your '.env' file should contain:
PROJECT_NAME=project-name # Name of your project
REPO_URL= # Your Git repository URL
DOMAIN_PREFIX=project-name.dev # Domain prefix for local development