Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.08 KB

local-setup.md

File metadata and controls

51 lines (32 loc) · 1.08 KB

Local Setup

DDEV

The SNAC Laravel application uses DDEV for local development.

Follow the getting started guide to install DDEV on your machine.

Running the server

Once DDEV is installed, run the following command in the root of this project.

ddev start

IMPORTANT

This application shares its database with the snac-server application and snac-server must be running and have an imported database before this application will work.

Installing dependencies

Once the server is running, run the following command to install the dependecies with composer.

ddev composer install

Setting up .env

Simply copy .env.example to .env

Running migrations

Please note that this application shares its database with the snac-server application and snac-server must be running and have an imported database before running this command

ddev artisan migrate

Stopping the server

Run the following command to stop your project.

ddev stop

Running Laravel PHPUnit Tests

ddev artisan test