shlinkio / website
Shlink project website
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 4
Forks: 19
Open Issues: 11
Language:SCSS
Type:project
Requires
- php: ^7.3
- doctrine/cache: ^1.8
- roave/security-advisories: dev-master
- zendframework/zend-config: ^3.1
- zendframework/zend-config-aggregator: ^1.1
- zendframework/zend-diactoros: ^2.1
- zendframework/zend-expressive: ^3.0
- zendframework/zend-expressive-fastroute: ^3.0
- zendframework/zend-expressive-helpers: ^5.0
- zendframework/zend-expressive-platesrenderer: ^2.0
- zendframework/zend-servicemanager: ^3.3
- zendframework/zend-stdlib: ^3.0
Requires (Dev)
- filp/whoops: ^2.0
- phpstan/phpstan: ^0.11.14
- shlinkio/php-coding-standard: ^1.2
- symfony/var-dumper: ^4.0
- zendframework/zend-component-installer: ^2.1
- zendframework/zend-expressive-tooling: ^1.0
README
This is shlink's project website. A statically built site, created with next.js.
Run it locally
In order to run this project locally, follow these steps:
- Clone the repo:
git clone https://github.com/shlinkio/shlink.io
. - With
docker compose
:- Copy
docker-compose.override.yml.dist
todocker-compose.override.yml
. - Run project:
docker compose up
.
- Copy
- Without
docker compose
:- Install dependencies:
npm install
. - Run project:
npm run dev
.
- Install dependencies:
- Open app localhost:3000.
Now you can work locally on any change in case you want to provide some improvement.
Build production site
The project can be exported to a static site fully optimized for production.
Run npm run export
and you will get an out
directory with the static files.
Now you can serve it with the web server of your choice.
Build docker image
As an alternative to building the static site locally, you can also build a docker image which will in turn use the static site internally and serve it using nginx.
Run docker build . -t shlink-website
(or the name you want to give it) to get the docker image built.
You can also get the image from Docker hub. It is automatically built there every time the code changes or a new version is tagged.