Inspired by a Boston based tech company called Spoiler Alert, Stay Fresh is a tool to help users save money, reduce food waste, and prevent a cluttered pantry by sending a weekly email to remind them what pantry items are set to expire each week. It uses technology similar to what can be found in Spoiler Alert's stack.
Stay Fresh is MERN stack web based application that uses SendGrid to email users who provide their email address on signup. The authentication process is handled by PassportJS and Google OAuth2.
- Run
npm installin both this directory and in theclientdirectory. - In the config directory, create a file called
dev.jsand add it to gitignore. This is where you will store api keys and secrets.
Run npm run dev in this directory. This uses concurrently to run the frontend and backend servers in the same console.
Create one manually or with a random string generator
In your google developer console, start a new project. Click Enable APIs and search for Google+. Following the instructions, add your googleClientSecret and googleClientID to ./config/dev.js, and add your development domains to your authorized domains.
Creat an account with MongoDB, create a new cluster with AWS in your region and name it. Follow the set up instructions and add the mongoURI to ./config/dev.js.
NOTE: Copy the autogenerated password before moving forward. Once you proceed, you will not be able to see this password again.
Creat an account with SendGrid. Create a project and add the API key to ./config/dev.js
NOTE:REMINDER: be sure that ./config/dev.js is added to .gitignore
Fix delete pantry item- consolidate duplicates
- implement search feature
- implement filter feature
Stay Fresh will soon be open to accepting contributions. In the meantime, make an issue if you have one.