A web app where users post links and leave comments. Built with Laravel and sakura.css
Note: I wrote these instructions for systems with docker installed because it removes most of the hassle of obtaining dependencies and configuration.
If you already have Laravel dependencies, installed composer globally, and a laravel supported database,
then just follow step 1, configure the .env
file with your database credentials, do step 7 in the project directory and php artisan serve
docker and docker-compose working in your host system
-
clone this repo, goto the directory and rename the env file:
user@host:~$ git clone https://github.com/cruzken/linkit.git && cd linkit && cp .env.example .env
-
clone laradock repo, goto the directory and rename the env file:
user@host:~/linkit$ git clone https://github.com/laradock/laradock/ && cd laradock && cp env-example .env
-
change the line
MYSQL_VERSION=latest
inlaradock/.env
to:MYSQL_VERSION=5.7
-
Open
linkin/.env
and setDB_HOST
value to:mysql
- for
DB_DATABASE
,DB_USERNAME
,DB_PASSWORD
match the values set inlaradock/.env
MYSQL_DATABASE
,MYSQL_USER
,MYSQL_PASSWORD
- for
-
start building the containers:
user@host:~/linkit/laradock$ docker-compose up -d nginx mysql workspace
-
access the workspace container:
user@host:~/linkit/laradock$ docker-compose exec workspace bash
-
in the workspace container initialize the app:
root@foo:/var/www# composer install && php artisan key:generate && php artisan migrate
- If installed without docker, run
php artisan serve
in the project directory. - Go to the local address that the app is served in the browser (usually localhost or localhost:8000)
- Register user accounts, submit links, and post comments!
There is no contributing guide (yet?) Feel free to submit pull requests for fixes, features, etc.
Thanks to the Laravel team for their amazing framework. Thanks to the Laradock team for their docker environment configuration. Thanks to oxalorg for the elegant classless css theme.
This is open-sourced software licensed under the MIT license.