To make a pull request, create a branch on the github repo. Typically, the branch name should be the name of the issue you are making a pull request for. If there are no exisiting issues, you should still create a branch and make a pull request to the branch you just created . Please do not make a pull request to dev branch or main.
Once a pull request has been made, the maintainer will pull that branch and test the recent changes before taking the next action.
Before you begin, ensure you have met the following requirements:
git clone https://github.com/jovialcore/whatcompstack-BE.git
cd whatcompstack-BE
composer install
npm install
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan db:seed
php artisan serve
You can also run the BE via a container if you are experiencing difficulty with the local setup
Before you begin make sure you have the docker daemon installed and running on your PC. If you don't have docker installed, you have to either download docker desktop or OrbStack, and install it. Note OrbStack only works on Mac
Open a new terminal, navigate to the root directory of the repo, and run the next set of commands to configure and start the container.
docker-compose build
to build the containerdocker-compose run app composer install
to install the PHP packagesdocker-compose run app npm install
to install the node packagesdocker-compose run app php artisan migrate
to run the migrationsdocker-compose run app php artisan db:seed
to seed the databasedocker-compose up -d app
to start the container- Launch the app by opening
http://localhost:8000/
on your web browser