Coder Social home page Coder Social logo

backyard-veggies's Introduction

backyard-veggies

Welcome to backyard-veggies, a single page application built with React and Node with Express. This app allows users to search for recipes using locally seasonal ingredients in US States in any month of the year.

Live Deployed App

http://backyard-veggies.com

Table of Contents

  1. App Usage
  2. Developer Usage
    a. Installation
    b. Database Setup
    c. API Setup
    d. For Use in Development

App Usage


click to view in new tab

Developer Usage

Prerequisites

This application is built with Node and will require Node to be installed to run. To install Node, follow the instructions
installing with nvm recommended

Installation

  1. Navigate to repo
  2. Clone locally using git clone https://github.com/tdsmith27/backyard-veggies.git
  3. Install dependencies with npm install

Database and API setup

This app uses an Atlas-hosted mongoDB cluster and the edamam recipe API.

To set up the database
  1. Navigate to mongodb.com/cloud/atlas in your web browser and sign in or create an account
  2. Create a new project
  3. Within this project, build a new DB cluster
  4. Click the "Connect" button for the newly created cluster
  5. After making sure to whitelist the IP address that your server will run from, create a MongoDB user and click "Choose a connection method"
  6. Click "Connect Your Application" to generate a connection string
  7. In your local repo, navigate to the file titled sample.env and rename it or duplicate it as .env
  8. In the .env file, complete the DB_USR and DB_PASS fields with the username and password created from step 5
  9. Complete the DB_STRING field with everything between the @ and ? in the generated connection string from step 6
  10. Seed your database with node db/seedVeggies.js
    Be patient, this step could take several minutes
To set up API access
  1. Navigate to developer.edamam.com in your web browser
  2. Click "sign up" in the Recipe Search box and follow instructions to create an edamam developer account
  3. From your API Developer Dashboard create a new application for use with the Recipe Search API
  4. Add your "Application ID" and "Application Key" to the API_ID and API_KEY fields in your local .env file

For use in development

From the root directory of your locally cloned repo:

  1. Build with npm run watch
  2. Start server with npm run dev
  3. Navigate to localhost:3000 to view development version of app

backyard-veggies's People

Contributors

tdsmith27 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.