Required node version: >= 14
-
Create DB - cfg
-
clone app (donor-app server and client)
-
nvm env config client/server (node_env set to production)
-
npm install
- from project root, run "npm i"
- from /client folder, run "npm i"
-
Private images - create folder and upload signature image file and letter header file to /img/private folder
-
build client
- from /client folder, run "npm run build"
- If application is not running at domain root (i.e. app is accessed via a relative path from the domain root) update the following paths in 'client/public/index.html':
a.
b.
c. <script defer src='{/PATH_TO_APP}/build/bundle.js'></script>
-
client: from /, npm run client
-
client dev and (prod|dev) server: from /, npm run dev
-
client only: from /client, npm run start (app runs on port set in .env)
-
client and server: from /, npm run start (app runs on port set in .env)
-
To update client dev server app port, set --port flag in client/package.json 'dev' (or current run) scripts
-
webpack.config.js Added Dotenv library
-
webpack.config.js Added devServer {} public setting via .env (server domain for webpack 'allowed hosts')
The Node runtime environment. Options:
- Request data is compressed
- Session token validated with each request to the server
- No data compression
- Session token validated with each request to the server
- No data compression
- No session token validation
The Node runtime environment. Options:
- Request data is compressed
- Session token validated with each request to the server
- No data compression
- No session token validation