- Contentful CMS
- Express.js Server
- React.js Frtontend
webpack.*.config.jsconfigures the front-end buildconfig.jsconfigures Contentful CMS connectionecosystem.config.jsconfigurespm2[see Deployment below]
> npm installor> yarn> node app.js- Open your browser and naviagte to
http://localhost:3000
- This site is currently deployed on an AWS EC2 instance. To gain SSH access to this Ubuntu machine, write to Mani Nilchiani or Ian Thompson
- The
node.jsserver process is initialized and watched bypm2. To install this process manager, you'll neednode.jsandnpminstalled. Then:> npm install pm2 -goryarn glonal add pm2 - Run
> npm run build-productionor> yarn build-productionto build the front-end CSS & JS assets. - Once
npmdependencies are installed andpm2is installed globally, run> ./init.sh. Inspect the contenst of this file to see what it does. But it basically applies the settings described inecosystem.config.jsand startspm2with these settings. Once the server is running, executepm2 lsto see your app running and datapoins about it.