A website base on Laravel and Bootstrap for HackerSir.
- PHP 7.1.3+
- Yarn
- Laravel 5.8
- Bootstrap 4
- Font Awesome 5
- Vue.js 2
- js
- eslint(airbnb)
- php
- PSR@2
- Packages
- predis/predis: ^1.1
- barryvdh/laravel-debugbar: ^3.2
- squizlabs/php_codesniffer: *
- cscc/sso: ^0.4.0
- Run the following commands.
# Setting composer config let it can install private repo
composer config http-basic.gitlab.cs.nctu.edu.tw $GITLAB_DEPLOY_USERNAME $GITLAB_DEPLOY_PASSWORD
composer install
yarn
- Copy
.env.example
to.env
.
cp .env.example .env
-
Configure environment variables in
.env
. -
Generate app key.
php artisan key:generate
- NCTU CSSSO setting(optional) https://gitlab.cs.nctu.edu.tw/www/cscc-sso/sso-sdk
In this project we use 26184055c5126dc51f2aadadd7a3b4a9506a1d04
-
Install
docker
&docker-compose
-
Clone laradock(alreay in git submodule)
git submodule update --init
cd laradock/
- Copy
env-example
to.env
.
cp env-example .env
- Create your workspace(in laradock directory)
docker-compose up -d nginx redis mariadb maildev workspace php-fpm
- Install module in container
cp .env.example.laradock .env
# you must add '--user=laradock' or you will get some promission problem
docker-compose exec --user=laradock workspace bash
# Then see 'Installation Guide' part
You can check your .gitlab-ci.yml
in CI Lint
- If you modify some files which need to be compiled, make sure you have run the following command before commit.
(For testing in local, you can also compile files by using
yarn run dev
instead.)
yarn run production