🚀 Project Setup Guide
This guide explains how to get the Edmonton Accident & Near Miss Reporting Platform running locally in just a few steps.
🛠️ Prerequisites
- Docker
- Docker Compose
- Make (optional, but recommended)
⚡ Quick Start
- Clone the repository
git clone https://github.com/ChadOhman/opensafetymap.git
cd accident-reports
- Start the stack with Docker Compose
make up
This will spin up:
- app → PHP + Apache web app (http://localhost:8080)
- db → MySQL database (port 3306, user root, pass example)
- Seed the database
make seed
This will import seed.sql into the MySQL database.
- Visit the app
Open your browser:
👉 http://localhost:8080
🧰 Useful Commands
make up→ Start stackmake down→ Stop stackmake logs→ Tail container logsmake ps→ Show running containersmake restart→ Restart containersmake db-shell→ Open MySQL shell inside DB containermake app-shell→ Open shell inside PHP app containermake seed→ Re-import database schema & test data
✅ You're Ready!
You now have a full local environment running the project. 🎉
Next steps: Check the Developer Guide for contributing details.