2018-06-11 11:09:35 +02:00
# RICOH WIAAS
### ENVIROMENT
- PHP 7.0
- MYSQL 5.7.22
- NODE 8.0
## APPLICATION API
- install wamp or LAMP depending on the envirorment (or any other service that provides php + mysql)
Make sure that "rewrite" is allowed and enabled in APACHE server
2018-06-11 11:49:39 +02:00
- create `public` folder (in root of the project) and configure apache to serve this folder as root folder
2018-06-11 11:09:35 +02:00
- install composer
2018-06-11 11:49:39 +02:00
-run `php composer install` (or just `composer install` if composer is installed globally) in api-wiaas folder to get required libraries
2018-06-11 11:09:35 +02:00
2018-06-11 11:49:39 +02:00
- create symlink to for `api-wiaas` in `public` directory
2018-06-11 11:09:35 +02:00
-for old interface run `grunt` in api-wiaas to generated stylesheets
## APPLICATION CLIENT
JavasScript (React + Redux)
2018-06-11 11:49:39 +02:00
- npm install in `client-wiaas` to update required libraries
2018-06-11 11:09:35 +02:00
- npm run build
2018-06-11 11:49:39 +02:00
- copy content of `build` folder to `public` directory
2018-06-11 11:09:35 +02:00
- npm start in client-wiaas to start the applicaiton
2018-06-11 11:49:39 +02:00
2018-06-12 08:24:18 +02:00
## DOCKER
2018-06-11 11:49:39 +02:00
- install docker-ce and docker-compose
2018-06-24 18:59:01 +02:00
- Check env variables in php.dockerfile in root directory of project (for local testing, REACT_APP_DEV_URL should be set to http://localhost:8000/api-wiaas)
2018-06-11 11:49:39 +02:00
- from root of the project, execute `docker-compose build` and then `docker-compose up`
Application is now available on http://localhost:8000