At work, our PHP developer has left and we are not in the process of hiring another one. At the moment, funding is just okay, so we can't hire someone for another 2-4 months.
I'm actually a front-end developer(iOS/ReactJS, and a little node and python) and am not comfortable doing any of this, but would like to dive in and learn through any resources possible (even paid). The PHP dev left me a bunch login credentials for Forge, Envoyer, and AWS. I have no idea how to proceed from here. The dev shop before our current dev made a decent readme but I can't seem to connect the dots. I am so, so lost and just need some sort of a direction.
This is some copy + paste from the readme with issues I am stuck with below. Really... any direction is appreciated. I feel so stuck.
Running Locally
Ensure you have the AWS CLI tools installed (via pipor brew)
Open a terminal and navigate to this directory (API project root)
Run docker-compose up -d
Once the containers are running, you can provision the database by running ./bin/runme
You're all set!
NOTE - If you wish to run the API on a port other than 80, just update the webserver port mapping from "80:80"to "8080:80"(or whatever port you want to be exposed).
I run 'docker-compose up -d' , and I get an error message stating, ' (partial url)-east-1.amazonaws.com/v2/php/manifests/7.1-fpm-alpine: no basic auth credentials', soI attempted to use the command 'aws configure' and input
AWS Access Key ID [******************D]:AWS Secret Access Key [*******************Z]:Default region name [east]:Default output format [None]:but not sure how to proceed from there... I can logon to AWS with the credentials just fine, but I tried logging to AWS with the credentials to the URL and I am not allowed in.
Connecting to the Database
Database connection credentials can be found in the .envfile under the DB_*keys. The default port is 13306(when running Docker).
The Readme.MD states, "Database connection credentials can be found in the .env file under the DB_* keys. The default port is 13306 (when running Docker)."But when I go to API root directory and use the command 'open .env', I don't see any section that is labeled 'DB_* keys''. I'm also confused as to why I was given a password to the .env file when I can just open it through terminal. My first thought, I am totally misunderstanding how this works and I am in approaching it incorrectly...
API
To set up a new installation of this API, your system must be set up to run PHP and MySQL.
You must also have Composer and the Apiary CLI Client installed. Note that installing the Apiary CLI Client may require you to install the ruby-devOS package first.
To set up the Laravel system, run the following commands at the root level of this project directory.
$ composer install $ bin/setup
Then set up the .env file according to your environment. You can generate Apiary keys at: https://login.apiary.io/tokens
When your database information is set up, run the following command to set up migrations:
$ php artisan migrate
Once migrations are complete, your system is ready to go.
For more information about about the installation, please refer to Laravel's guide.
So, I failed miserably at running locally and connecting to the database, but I was able to successfully run the commands, 'composer install' and 'bin/setup'but on the command, 'php artisan migrate', I get this error : SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = companyapp and table_name = migrations)
I understand that there is some sort of connection in the .env file, because there is a line with 'DB_DATABASE=companyapp'The command, 'php artisan migrate --env=production', looked like it might work, but on the premise that I have no idea what the hell I am doing, I'm hoping I can get input from you guys before running anything big.
In the midst of trying to just get things to run, I've downloaded MySQLWorkBench and Docker Desktop.
I'm going to take a step back and just learn how these two work better.
On the bright side, I am hoping to use this hurdle as a way to understand Docker and AWS better. I'm hoping this shitty struggle and chaos with PHP Laravel turns me into a better dev. I'm not trying to make any new features but I do want to be able to do simple things like, delete a test user, debug 400's..that's about it.
Again, any advice or some sort of direction is greatly appreciated. I am not looking to solve this overnight, but instead, to learn a lot from this situation. Worse comes to worse, do you guys think it'd be appropriate to have my founder pay hours for the dev agency beforehand ? The previous dev seems like he has no interest to help, but he's also quite busy. Should I pester him more?