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.
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
- Navigate to repo
- Clone locally using
git clone https://github.com/tdsmith27/backyard-veggies.git
- Install dependencies with
npm install
This app uses an Atlas-hosted mongoDB cluster and the edamam recipe API.
- Navigate to mongodb.com/cloud/atlas in your web browser and sign in or create an account
- Create a new project
- Within this project, build a new DB cluster
- Click the "Connect" button for the newly created cluster
- After making sure to whitelist the IP address that your server will run from, create a MongoDB user and click "Choose a connection method"
- Click "Connect Your Application" to generate a connection string
- In your local repo, navigate to the file titled sample.env and rename it or duplicate it as .env
- In the .env file, complete the DB_USR and DB_PASS fields with the username and password created from step 5
- Complete the DB_STRING field with everything between the @ and ? in the generated connection string from step 6
- Seed your database with
node db/seedVeggies.js
Be patient, this step could take several minutes
- Navigate to developer.edamam.com in your web browser
- Click "sign up" in the Recipe Search box and follow instructions to create an edamam developer account
- From your API Developer Dashboard create a new application for use with the Recipe Search API
- Add your "Application ID" and "Application Key" to the API_ID and API_KEY fields in your local .env file
From the root directory of your locally cloned repo:
- Build with
npm run watch
- Start server with
npm run dev
- Navigate to localhost:3000 to view development version of app