Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gibbs/app.dangibbs.uk

Laravel application for dangibbs.uk
https://github.com/gibbs/app.dangibbs.uk

laravel php

Last synced: 1 day ago
JSON representation

Laravel application for dangibbs.uk

Awesome Lists containing this project

README

        

# app.dangibbs.uk

[![Test](https://github.com/gibbs/app.dangibbs.uk/actions/workflows/test.yml/badge.svg)](https://github.com/gibbs/app.dangibbs.uk/actions/workflows/test.yml)

[Laravel](https://laravel.com/) server-side application for
[dangibbs.uk](https://dangibbs.uk/) (static site).

## Development

```bash
# Add to hosts file
echo "127.0.0.1 app.dangibbs.test" | sudo tee -a /etc/hosts >/dev/null

# Install packages
composer install

# Run container via sail
sail up -d
```

## Test

```bash
# Test suite
sail artisan test

# Individual test
sail artisan test --filter MkpasswdTest
```

## Build

### Build Container

```bash
source .env
docker build --no-cache -t ${DOCKER_BUILD_NAME}:${DOCKER_BUILD_TAG} -t ${DOCKER_BUILD_NAME}:latest .
```

### Run Container

```bash
source .env
docker run -it ${DOCKER_BUILD_NAME}:${DOCKER_BUILD_TAG}
```

### Debug

```bash
docker exec -it $(docker ps | grep '${DOCKER_BUILD_NAME}:${DOCKER_BUILD_TAG}' | awk '{ print $1 }') /bin/bash
```