Giter Club home page Giter Club logo

dh-api's Introduction

Darchoods API

Working with this project locally

Working with the docker version of this project

  • docker-compose up -d

The API container should be available on 127.0.0.1:8082 and MySQL should be available on port 127.0.0.1:33060.

Arbitrary Commands

  • Bash into api container before the startup process
docker-compose run --entrypoint /bin/bash api
  • When the container is running you can attach to it using the following command
docker ps | egrep dh\-api\:latest | cut -f1 -d' ' | xargs -o -I % docker exec -it % /bin/bash
  • Run the API without triggering migrations
docker-compose up -d mysql && docker-compose run -e AUTORUN_LARAVEL_MIGRATION=false api

Manually running database seeding or migrations

Seeding

  • php artisan db:seed

Migrations

  • php artisan migrate --force --isolated

Manually verifying the PR checks

Check 1. PHP Linter

  • vendor/bin/phplint app tests

Check 2. PHP Code Style Checker - PSR12

https://www.php-fig.org/psr/psr-12/

  • vendor/bin/phpcs

If the CS Checker comes back with errors that it can automaticlly fix, run

  • vendor/bin/phpcbf

and it should fix them.

Tools used

  • asdf - Version manager

Random host dependencies

Required for building php natively on Ubuntu 22.04 / Jammy

sudo apt install -y re2c plocate libcurl4 libcurl4-doc libcurl4-gnutls-dev libxml++2.6-dev libgd-dev libonig-dev libzip-dev

dh-api's People

Contributors

xlink avatar scub avatar

Watchers

 avatar  avatar Jan Harasym avatar

Forkers

scub

dh-api's Issues

Server Stats?

We used to use Denora, but as far as i can tell, there is no current updated irc stats thing out there?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.