Skip to content

In this project I learn Cypress and elements of CI/CD through Github Actions. I also try and break my project on purpose so if I run into weird errors at work I've seen them before.

Notifications You must be signed in to change notification settings

ashleygraf101/laragram-fork

 
 

Repository files navigation

CI

Laragram

alt text alt text

About my use of this project

CI with Laravel/MySQL/Cypress using Github Actions

Principles

  • Fast-running tests (linter & unit) at the start
  • Slow tests (e2e) at the end
  • Test environment echoes production environment
  • Don't change major elements of the production environment
  • (Try things. See what breaks it)

Installation

Prerequisites

  • To run this project, you must have PHP 7 installed.
  • You should setup a host on your web server for your local domain.

Step 1

Begin by cloning this repository to your machine, and installing all Composer & NPM dependencies.

git clone https://github.com/lupanvi/laragram.git
cd laragram
touch .env
composer install && npm install
php artisan key:generate
	CREATE DATABASE forge;
	GRANT ALL on forge.* to forge@localhost;
php artisan migrate --seed
php artisan storage:link
npm run dev

Step 2

Next, boot up a server and visit your laragram app.

  1. php artisan serve
  2. Visit: http://your-laragram-url/login and write the demo credentials: user: [email protected] , password: 123456 , and press the login button
  3. You will be redirected to the home page, where you can see and add pictures with filters

Running tests

phpunit
npm run server:test

Todo

(See open pull request)

About

In this project I learn Cypress and elements of CI/CD through Github Actions. I also try and break my project on purpose so if I run into weird errors at work I've seen them before.

Resources

Stars

Watchers

Forks

Languages

  • PHP 67.4%
  • Vue 20.8%
  • HTML 11.8%