nabla-site-apache

Default nabla files for apache


Project maintained by AlbanAndrieu Hosted on GitHub Pages — Theme by mattgraham

layout: default

Text can be bold, italic, or strikethrough.

Nabla nabla-site-apache

License: APACHE

CHANGELOG.

Project Goal

This is a simple HTML project for Nabla company that promotes Alban Andrieu as an experienced DevSecOps professional.

Default nabla files for apache

GitHub Actions

The repository now includes a Hugo build and deployment workflow (.github/workflows/hugo-deploy.yml) that:

  1. Builds the Hugo site
  2. Uploads build artifacts
  3. Deploys to Vercel (on push to main/master branch)

Required secrets for GitHub Actions:

Monorepo Structure

This repository contains multiple deployable projects:

  1. Root Project - PHP API + Static HTML site
  2. my-app/ - Next.js application (separate Vercel deployment)
  3. vue-client/ - Vue/Vite application (separate Vercel deployment)

Deployment

Root Project (PHP + Static Site)

npm run start-python
# Cloudflare wrangler
npm run start

For vercel

vercel deploy
vercel --prod

For vercel php

composer install --ignore-platform-req=ext-mbstring

php -S localhost:8000 api/index.php

Subprojects (my-app and vue-client)

Each subproject has its own vercel.json configuration and should be deployed as separate Vercel projects:

my-app (Next.js):

cd my-app
vercel link  # First time only
vercel       # Preview deployment
vercel --prod  # Production deployment

vue-client (Vue/Vite):

cd vue-client
vercel link  # First time only
vercel       # Preview deployment
vercel --prod  # Production deployment

See individual README files in each subproject directory for more details.

For Apache

aa-teardown
sudo service apache2 restart
sudo service php8.4-fpm restart
tail -f /var/log/apache2/error.log

php-framework-symfony-microservice

# Python 2
python -m SimpleHTTPServer 8001

# Python 3
python -m http.server 8001

Terraform

terraform-s3-static-website-hosting

Testing

This project uses Playwright for end-to-end testing. The test suite includes:

Running Tests Locally

# Install dependencies (includes Playwright)
npm install

# Install Playwright browsers (first time only)
npx playwright install

# Run all tests
npm test

# Run tests in headed mode (see browser)
npm run test:headed

# Run tests in interactive UI mode
npm run test:ui

# Debug tests
npm run test:debug

# View test report
npm run test:report

SDLC Integration

Tests run automatically on GitHub Actions for all push and pull request events. The workflow:

  1. Sets up Node.js environment
  2. Installs dependencies
  3. Installs Playwright browsers
  4. Runs the test suite
  5. Uploads test reports and traces as artifacts

See .github/workflows/playwright.yml for the complete workflow configuration.

Contributing

The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.

For pull requests, editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at http://editorconfig.org.

License

Apache v2


Alban Andrieu linkedin