# armory-fmf-cms ## Hansel and Gretel Website The Hansel and Gretel Website is a port of the FMF iPad app, minus the face detection features. It uses react-native-web. This codebase is a fork of the iPad app, with many alterations to make the app work in multiple web environments (desktop, mobile). ### Initial setup The CMS code relies on a private repository. Please contact Jules for access. ``` npm install cd client npm install ``` ### Run the CMS Create an `.env` file with the following variables: ``` S3_KEY= S3_SECRET= S3_BUCKET= S3_DIRNAME= OK_USER= OK_PASS= OK_PRODUCTION=false MAILGUN_API_KEY= MAILGUN_DOMAIN= MAIL_SECRET= PORT=8100 WEBHOOK_SECRET=awwSTUDIO ``` Then run the CMS: ``` npm index ``` This will start the CMS running on the port specified, e.g. http://localhost:8100/ ### Building the client Build the client locally and push that up to Digital Ocean. ``` cd client ./fetch-db.sh npm web:build git push ``` ### Deploy the changes ``` ssh ja@armory cd armory-fmf-cms git pull pm2 restart cms ```