- What is this project?
- How does it work?
- Who will use this project?
- What is the goal of this project?
This application allow timber harvesters to report their harvested quantity through an online application which can then be approved through the internal Forestar Apex Application
###Directory Structure
The project contains three modules:
/clientFront-end application written in React/serverBack-end API in a ExpressJS sever/_dockerDocker specific files for docker-compose
###Environment Variables
Each module has their own .env file as needed. .env.base files give an idea of the required variables.
###Development
To run the application in a development environment. Checkout the repo and create .env files with appropriate values for the dev setup.
nginxAt the root level rundocker-compose up/clientIn this directory runnpm iand thennpm start. For Windows,npm start-win/serverIn this directory runnpm iand thennpm run start-watch. For Windows,npm start-watch-win
###Test
To build and run a test environment. Checkout the repo and create .env files with appropriate values for the test setup.
####To build client image
- In the
/clientdirectory run:npm inpm run build-cssnom run builddocker build -t timber-client .
####To build server image
- In the
/serverdirectory run:npm inom run builddocker build -t timber-api .
####To run images and nginx in front of them
At the root level run docker-compose -f docker-compose-test.yml up