hedera-web/README.md

59 lines
1.2 KiB
Markdown
Raw Normal View History

# Hedera
Hedera is the main web shop page for Verdnatura.
## Prerequisites
Required applications.
2024-05-09 07:20:07 +00:00
* PHP >= 8.4
* Node.js >= 20.0
Take a look to *debian/control* file to see additional dependencies.
Copy config.php to *config.my.php* and place your DB config there.
### Installing dependencies and launching
2023-06-20 14:56:19 +00:00
Pull from repository.
Run this commands on project root directory to install Node dependencies.
2023-06-20 14:56:19 +00:00
```
$ npm install
```
2023-06-20 14:56:19 +00:00
2024-03-11 12:23:07 +00:00
Install project dependences (debian/control).
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.
Launch project fronted.
```
$ npm run front
```
Launch salix backend.
```
$ npm run db
$ npm run back
```
Launch project backend.
```
$ php -S 127.0.0.1:3001 -t . index.php
2023-06-20 14:56:19 +00:00
```
### Command line
Run server side method from command line.
```
$ php hedera-web.php -m method_path
```
## Built with
* [nodejs](https://nodejs.org/)
* [php](https://www.php.net/)
* [Webpack](https://webpack.js.org/)
* [MooTools](https://mootools.net/)
* [TinyMCE](https://www.tinymce.com/)