Skip to content

JumpTwentyFour/wandersnap-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

230 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wandersnap Api

Requirements

Setup

  • cp .env.example .env
  • docker compose build
  • docker compose up -d
  • docker compose exec php composer install
  • docker compose exec php php artisan key:generate
  • docker compose exec php php artisan migrate

the API should now be able available at (http://localhost/api/ping)

Running commands

Run artisan commands with: docker compose exec php php artisan <command>

Tests

For PHP testing we are using the Pest framework.

Run PHP unit tests with: docker compose exec php php artisan test

Database

You can connect to the MySQL database with the following credentials:

Host: 127.0.0.1
Port: 4406
Username: root
Password: root

Emails

The development docker setup includes Mailpit for catching emails sent from the app.

You can access the Mailpit UI at http://localhost:8025

Coding Standards

  • Run composer lint to check coding standards on PHP files.
  • Run composer fix to auto-fix coding standards on PHP files.

Pull Requests

Pull requests targeting the main branch should reference a Jira task using either the branch name or a commit message, more information can be found here.

This ensures all PRs are linked to a Jira task.

Open API Specification

The Open API Spec for this project can be found here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors