- Contentful CMS
- Express.js Server
- React.js Frtontend
webpack.*.config.js
configures the front-end buildconfig.js
configures Contentful CMS connectionecosystem.config.js
configurespm2
[see Deployment below]
> npm install
or> 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.js
server process is initialized and watched bypm2
. To install this process manager, you'll neednode.js
andnpm
installed. Then:> npm install pm2 -g
oryarn glonal add pm2
- Run
> npm run build-production
or> yarn build-production
to build the front-end CSS & JS assets. - Once
npm
dependencies are installed andpm2
is 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.js
and startspm2
with these settings. Once the server is running, executepm2 ls
to see your app running and datapoins about it.