This is the official web app that powers OpenEats. It's built using React/Redux.
See the homepage for more information about OpenEats!
Please read the contribution guidelines in order to make the contribution process easy and effective for everyone involved.
To run tests locally:
cd openeats-api
docker-compose -f test.yml -p test build
docker-compose -f test.yml -p test run --rm --entrypoint sh web
./node_modules/.bin/jest --coverage
After adding new defineMessages
you'll need to update the locale files. Instead of doing it manually you can run this script to do it for you.
docker-compose run --rm web sh
./node_modules/.bin/babel-node scripts/merge-locale.js
The demo site is built using pure js and relies on populating the redux store when the app starts. If more data needs to be added be sure to update the demo json
To Build the demo site, update the dev env file with the below.
# Node config
NODE_ENV=demo
NODE_API_URL=
NODE_LOCALE=en
Then Run:
docker-compose up node
This will generate all the require files in the public folder. These files can be copied directly into the demo repo.