Based on the following Frameworks:
- Laravel
9.2
- Sanctum
2.14.1
- Livewire
v2.10.5
- Tailwind CSS
3.0.23
- AlpineJS
3.0
Follow this guide to develop and contribute on OneUp
- Create work-items in Azure-DevOps Board
- Create a new branch from
main
and link the corresponding work-items - publish your changes and raise a pull-request.
- Your code must have PhpUnit Tests with a minimum coverage of 85%
- Your PR will be reviewed by the product owner
- CI/CD Pipelines will push the code to the kubernetes platform for you
Make sure you exclude any secrets with
.gitignore
AND.dockerignore
. ๐
clone this repository
git clone https://[email protected]/Lufthansa-Group/oneup/_git/oneup
This is a private repository and require authentication. The easiest way to do so is using Git Credential Manager to generate tokens
GCT is available for all systems.
Cd in /oneup
and create an .env file based on the template in this repo
cp .env.example .env
You may generate an App-Key for bcrypt support using the artisan key:generate
command
php artisan key:generate
Install composer and npm dependencies
composer install
npm install && npm run dev
php artisan serve
You can change hostname and port number using the artisan options. For more information type php artisan help serve
You can also run a development environment on Docker
./vendor/bin/sail up
To run the environment in interactive mode, use the -d
option the end of the command. To stop the environment type ./vendor/bin/sail down
However, instead of repeatedly typing vendor/bin/sail
to execute Sail commands, you may wish to configure a Bash alias
that allows you to execute Sail's commands more easily:
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
Once the Bash alias has been configured, you may execute Sail commands by simply typing sail
.
sail up
Further information about sail
and artisan
commands can be found
on Laravel`s Documentation page.