Intrahealth - DRC
- Make sure node is installed.
- Clone the repository or Download the zip project and unzip the contents.
- Create the database and run the sql script in workforce_pressure.sql file under db folder
- Set the database credentials in /Server/dbconn.js
- Navigate to the project directory on a shell of choice - i.e. Git Bash
- If you have node installed, we can use the node package manager (npm) to install dependencies. Type
npm installto install dependencies - Make sure to build web-app first, so type
npm run build-app - To run web server type
npm start - Open a web browser of choice and type
www.localhost:3000to see the load the application
Here is a breakdown of the main contents in the project directory
- public/ - Has the index.html and css files thats helps manipulate the appearance of the user interface elements.
- app/ - Has
.jsxfiles that have user interface contents. These files control the view of the application on the browser - server/ - Has
.jsfiles that connect and query the database tables. These files have the model logic that controls and sends response to the.jsxfiles which control the user interface - package.json - Has list of all dependencies - external libraries/packages that our app relies on.