App available online on this link!
User: challenge@alkemy.org
Password: react
To run this app locally, clone this repo and install dependencies, configure environment variables (you will need a Spoonacular api-key) and compile the production version.
-
Clone this repo
git clone https://github.com/matiasmicheletto/alkemy-spoonacular-app.git
-
Go to front-ent folder
cd alkemy-spoonacular-app/client
-
Add environment variables (replace ???? with your api-key)
cat > .env << EOF REACT_APP_API_KEY=????? REACT_APP_API_URL=https://api.spoonacular.com/recipes/complexSearch REACT_APP_LOGIN_URL=http://challenge-react.alkemy.org/ EOF
-
Install front-end dependencies
npm install
-
Compile production optimized version
npm run build
-
Go back to root folder and install backend dependencies
cd .. && npm install
-
Start the local web server (localhost:3000)
npm start
The goal is to develop a web application for choosing the dishes options of a menu for a hotel and showing different attributes of each dish along with the complete menu. An external API will be used to consume data and search the dishes.
Functional and non functional requirements are detailed in this document.
root
| .env
| .gitignore
| index.js <-- Entry point
| package.json
| package-lock.json
|
└── models <-- Back-end
| | server.js
|
└── client <-- Front-end
| .env
| .gitignore
│ package.json
│ package-lock.json
│
└── public
| ...
└── src
| App.js
| index.js
| setupTests.js
| utils.js
└── views
└── modals
└── components
└── img
└── context
└── middleware