matiasmicheletto / alkemy-spoonacular-app

Challenge Alkemy: Una aplicación para crear una carta de opciones de menús para un hotel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Challenge front-end Alkemy: React

App available online on this link!

User: challenge@alkemy.org
Password: react

screen capture

Installation

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.

  1. Clone this repo

    git clone https://github.com/matiasmicheletto/alkemy-spoonacular-app.git
  2. Go to front-ent folder

    cd alkemy-spoonacular-app/client
  3. 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
  4. Install front-end dependencies

    npm install
  5. Compile production optimized version

    npm run build
  6. Go back to root folder and install backend dependencies

    cd .. && npm install
  7. Start the local web server (localhost:3000)

    npm start 

Screenshots

login home search

Documentation

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.

Project structure

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

clean

About

Challenge Alkemy: Una aplicación para crear una carta de opciones de menús para un hotel

License:GNU General Public License v3.0


Languages

Language:JavaScript 87.6%Language:CSS 10.7%Language:HTML 1.5%Language:Shell 0.2%