- Overview
- Video Walkthrough
- MVP Features for Pantry
- ERD & Wireframe
- Clone/Install the Project Instructions
- Learn More about Next.js
- Contributors
- Tech and Frameworks Used
- API Reference
- The ideal user for Pantry is someone who likes to cook meals, especially those strapped for time or resources.
- Users can keep track of the ingredients they have in their pantry by entering them into Pantry, and always have a real time view of what they have, and how much.
- Users can find recipes that match the ingredients they currently have, and dynamically update the amount of an ingredient they have in their pantry based on the recipes they make.
- link
- User signs in with Google Auth
- Users can see public recipes that other users have created, as well as private recipes that they have created
- Users can add ingredients to their pantry via an external API
- Users can see on a recipe page whether they have an ingredient/enough of an ingredient to make a recipe
- Create a Firebase project and set up authentication.
- Create a
.envfile at the root of the project - Copy/Paste the contents of the
.env.samplefile to your newly created.envfile. - Copy over all of your Firebase values into the
.envfile. - Create/Import sample data to project directory and Realtime Database
- Open the
package.jsonfile and change thenameproperty to the name of your application, andauthorto your name. - From your command line, be in the root directory and run
npm installORnpm ifor short. - Next, run
npm run prepare. This command sets up husky to track eslint errors on commit that will make your deploy fail on Netlify. - To start your application, run
npm run dev. - Open http://localhost:3000 with your browser.
- Deploy on Netlify: Netlify will automatically detect your project and prepopulate the settings, but should something go wrong and it does not, here are the commands:
- Build Command:
npm run build - Publish directory:
.next
- Any Enviromental variables you are using in your
.envfile should be added to Netlify. Go to Site settings > Build & deploy > Environment > Environment variables and the keys and values there. - In Firebase under Authentication select sign in methods, scroll to Authorized domains. Add your Netlify URL.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.