You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run git clone https://gitlab.com/gotipath-gitlab/mylocker/mylockermvp.git mylocker
Run cd mylocker
Production Installation
Setup database configurations on .env file
Setup redis configuration on .env file
Change APP_DEBUG to false on .env file
Change APP_ENV to production on .env file
Change CACHE_DRIVER to redis on .env file
Change QUEUE_CONNECTION to redis on .env file
Change SESSION_DRIVER to redis on .env file
Run composer install --optimize-autoloader --no-dev
Run cp .env.example .env
Run php artisan key:generate
Run php artisan app:install
Run php artisan migrate
Run php artisan optimize
Configuring Supervisor
Supervisor configuration files are typically stored in the /etc/supervisor/conf.d directory. Within this directory,
you may create any number of configuration files that instruct supervisor how your processes should be monitored. For
example, let's create a mylocker-worker.conf file that starts and monitors queue:work processes:
Run valet link to serve the application on mylocker.test domain
Git Etiquette's
General guidelines
Try not to push anything without a work item (or issue)
Never ever push code directly to main
Always create a feature branch for your task
Your branch name, Pull/Merge Request title should be meaningful, very, very meaningful
Make sure you tested your code well before creating a Pull/Merge Request
Don't do git pull. Do rebase. First do git fetch origin and then git rebase origin/master (or maybe main
instead of master). The thing is, git pull adds so many garbages. We need to keep our git history cleaner. Do this
when you think there are some changes in master branch. And let's say you got a merge conflict. Then do the above
mentioned stuff and don't forget to add your files (which had merge conflicts) manually (i.e. git add file_name). Do
not use git add .. Such things don't work.
Branch naming convention:
dev/your_username/branchName (branch name in camelCase) or
dev/your_username/branch_name (branch name with underscore)
So here are the steps:
Check out your work item (or issue)
Create a feature branch
Write your code
Test locally
Push your code
Create a Merge Request and assign it to someone
Attend to Pull/Merge Request comments
If approved, update(increment) web-version in composer.json file. Then push the changes and merge it to master
Clean Code Guideline (minimal)
Spaces, not tabs, are the white space character of choice in our projects. Tabs should consist of 4 spaces.
Comma, colon, and semicolon characters always get a single space after them and never before them.
// bad
[1,2,3]
// good
[1, 2, 3]
Binary arithmetic operators, equals sign, arrows always get a single space before and after them.
Rationale: less dense is easier on the eyes/brain, less strain mean lower likelihood of bugs.
// bad1+2/31*(2/3)
if (i=4)
// good1 + 2 / 31 * (2 / 3)
if (i = 4)
Align grouped variables.
Note that, we don't need to align all the variales, some variables will be of different group or, too long to align.
Leave them. Or align them as another block