2017-11-29 10:01:48 +00:00
# Hedera
2024-03-11 07:50:35 +00:00
Hedera is the main web shop page for Verdnatura.
2018-06-06 11:08:17 +00:00
2024-03-11 07:50:35 +00:00
## Prerequisites
2018-06-06 11:08:17 +00:00
2024-03-11 07:50:35 +00:00
Required applications.
2018-06-06 11:08:17 +00:00
* PHP >= 7.0
* Node.js >= 8.0
2024-03-11 07:50:35 +00:00
* [php-vn-lib ](https://gitea.verdnatura.es/verdnatura/php-vn-lib )
2018-06-06 11:08:17 +00:00
2024-03-11 07:50:35 +00:00
### Installing dependencies and launching
2023-06-20 14:56:19 +00:00
2024-03-11 07:50:35 +00:00
Pull from repository.
Run this commands on project root directory to install Node dependencies.
2023-06-20 14:56:19 +00:00
```
2024-03-11 07:50:35 +00:00
$ npm install
2018-08-24 11:17:34 +00:00
```
2023-06-20 14:56:19 +00:00
2024-03-11 12:23:07 +00:00
Install project dependences (debian/control).
2024-03-11 07:50:35 +00:00
Pull from repository [php-vn-lib ](https://gitea.verdnatura.es/verdnatura/php-vn-lib ) and install [dependences ](https://gitea.verdnatura.es/verdnatura/php-vn-lib/src/branch/master/debian/control ) of this project.
2024-03-11 12:23:07 +00:00
Configure config.php file.
2024-03-11 07:50:35 +00:00
Launch project fronted.
```
$ npm run front
```
Launch salix backend.
```
$ npm run db
$ npm run back
```
Launch project backend.
2018-08-24 11:17:34 +00:00
```
2024-03-11 07:50:35 +00:00
$ php -S 127.0.0.1:3001 -t . index.php
2023-06-20 14:56:19 +00:00
```
### Command line
2018-08-24 11:17:34 +00:00
Run server side method from command line.
2018-06-06 11:08:17 +00:00
```
2024-03-11 07:50:35 +00:00
$ php hedera-web.php -m method_path
2018-06-06 11:08:17 +00:00
```
## Built with
2024-03-11 07:50:35 +00:00
* [nodejs ](https://nodejs.org/ )
* [php ](https://www.php.net/ )
2018-06-06 11:08:17 +00:00
* [Webpack ](https://webpack.js.org/ )
* [MooTools ](https://mootools.net/ )
* [TinyMCE ](https://www.tinymce.com/ )