Files
filegator/docs/development.md
Milos Stojanovic 18b92d7b76 docs fix
2019-06-21 11:59:42 +02:00

40 lines
747 B
Markdown

---
currentMenu: development
---
## Project setup for development (Linux)
You must have `git`, `php`, `npm`, and `composer` installed.
```
git clone git@github.com:filegator/filegator.git
cd filegator
cp configuration_sample.php configuration.php
sudo chmod -R 777 private/
sudo chmod -R 777 repository/
composer install
npm install
npm run build
```
## Compiles and hot-reloads
The following command will launch backend and frontend on ports 8081 and 8080:
```
npm run serve
```
Once everything is ready visit: `http://localhost:8080`
## Run tests & static analysis
```
vendor/bin/phpunit
vendor/bin/phpstan analyse ./backend
```
## Deployment
Set the website document root to `/dist` directory. This is also known as 'public' folder.