This application provide recipe and lookup feature for chef like you!
yarn install && cd masterchef-client && yarn install
yarn run preprocess && yarn start
yarn test
for testing the serverside.
for clientside testing, we will use yarn test
under /masterchef-client
REMARK After test will remove build files. You will have to RUN again.
First you have to build (server + client) code:
yarn build
in the parent directory.
Then you can start your server in parent directory:
NODE_ENV=production yarn run server
After that, you need to setup reverse proxy to serve on 80 port from 3001.
Put your recipe under folder /data/recipes , each recipe must have a Unique recipe name as filename, the format must follow the standard:
{
"cookingTimeInMinutes": 60,
"imageUrl": "/images/recipe/${your_png_filename}",
"ingredients": [
{
"name": "Sugar",
"quantity": "1 tsp"
},
{
"name": "chicken",
"quantity": 2
}
]
}
Put image file under ./images/recipe/
This project structure is base on the idea from here
In behind, we use create-react-app(webpack + babel + react) for frontend, express for backend.
Jest as the Test runner.
For details, please read diary.md