I'm currently updating my old recipe web application project with new UI.
6 components:
- Input error warning
- Recipes cards
- Card Container
- Recipes Details
- Liked Recipe Page
3 Client routing:
- Recipes cards
- Card Container
- Landing Page
- Liked Recipe page
First enter this into your console and press enter:
$ npm install
It uses JSON server as backend. Please download JSON server globally by:
$ npm install -g json-server
To run the frontend, use the command:
$ npm start
To run the JSON server, use the command:
$ npm run server #
The Json server is set to run on Localhost: 4000 at the moment but, you can always change that by accessing script section in the package.json file. It should look like this:
// Change the number after "port" to change the JSON port number.
"server": "json-server --watch db.json --port 4000"
I created a simple recipe finder using spoonacular API and React JS framework. It simply allow users to enter food name and the app automatically displays 10 recipes related to what the user searched.
Each recipes provides an image of the recipe, title, and the link. The link takes the user to recipe card page where user can see the picture, title, preparation time, and the link to the original recipe.
In addition, there is a "Go back" button to go back to the search page.
MIT