mirror of
https://github.com/supanadit/short-url.git
synced 2024-11-10 01:52:20 +00:00
Self hosted url shortener application, a bit.ly alternative
4a5541bc28
improve table responsive for mobile view |
||
---|---|---|
app | ||
bootstrap | ||
config | ||
database | ||
public | ||
resources | ||
routes | ||
storage | ||
tests | ||
.editorconfig | ||
.env.example | ||
.gitattributes | ||
.gitignore | ||
.styleci.yml | ||
artisan | ||
composer.json | ||
composer.lock | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
phpunit.xml | ||
README.md | ||
server.php | ||
webpack.mix.js |
Short URL
This is url shortener application is similar to bit.ly
Demo
- Host : https://short.supanadit.com
- Email : admin@email.com
- Password : 123
Requirements
- Laravel 7.0+
- PHP 7.4
Quick Start
composer install
- create
.env
file php artisan key:generate
php artisan migrate
php artisan db:seed
php artisan serve
Apache Configuration for Virtual Host
<VirtualHost *:80>
DocumentRoot /srv/http/short/public
ServerAdmin webmaster@localhost
ServerName short.test
<Directory /srv/http/short/public>
DirectoryIndex index.php
AllowOverride All
Options FollowSymlinks
Require all granted
</Directory>
ErrorLog /var/log/httpd/short.test-error_log
CustomLog /var/log/httpd/short.test-access_log common
</VirtualHost>
Note
If you want to use forgot password feature, you must provide your email and password at .env
Support
License
Copyright 2020 Supan Adit Pratama
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.