2016-02-15 16:32:53 +00:00
# PDNS Manager
2017-07-23 14:20:32 +00:00
## Caution
This is the development branch for pdnsmanager it should become the 2.0 version if it is ready. If you want to use the software download a stable release from https://pdnsmanager.lmitsystems.de.
This development version contains known bugs and security vulnerabilities. Do not use it!
2017-07-23 14:52:11 +00:00
## Development Setup
2017-07-23 14:20:32 +00:00
Before you can start you have to configure the backend manually with a valid config-user.php
Also you have to install Angular CLI globally using
```bash
npm install -g @angular/cli
```
2017-07-23 14:26:09 +00:00
Then you have to install all dependencies using
```bash
npm install
```
2017-07-23 14:52:11 +00:00
Finally you have to setup a pre-commit hook using
```bash
ln utils/pre-commit.hook .git/hooks/pre-commit
```
## Development Commands
To run a development instance change in the backend-legacy folder and start the backend in one terminal.
2017-07-23 14:20:32 +00:00
```bash
cd backend-legacy
php -S localhost:8000
```
2017-07-23 14:52:11 +00:00
2017-07-23 14:20:32 +00:00
Afterwords you can run the development-server in another terminal using
```bash
npm start
```
2017-07-23 14:52:11 +00:00
Then you can go to a browser and open http://localhost:4200
2016-02-15 16:32:53 +00:00
2017-07-23 14:20:32 +00:00
If you want to lint the project run
```bash
npm run lint
```
2017-07-23 14:52:11 +00:00
this command will also be in the provided commit hook so that it is impossible to commit code which does not pass the linter.
2016-02-15 16:32:53 +00:00