Skip to content

open-eats/openeats-web

Repository files navigation

OpenEats Web App

Web Build Status Coverage Status Maintainability

This is the official web app that powers OpenEats. It's built using React/Redux.

See the homepage for more information about OpenEats!

Contributing

Please read the contribution guidelines in order to make the contribution process easy and effective for everyone involved.

Dev Tips

Running tests

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

Generating locale files

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

Building the demo site

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.