Welcome to our group's repo! 👋 This a final group project created during Makers Bootcamp.
Introducing FlavourFinder: Your Culinary Inspiration, Powered by AI
Tired of the same old recipes and culinary routines? Enter FlavourFinder, your passport to a world of exciting and delicious food ideas, all crafted with the help of AI innovation. Say goodbye to mealtime monotony and let our AI-driven web app infuse your kitchen with fresh flavors and inspiration. From quick weeknight meals to gourmet delights, FlavorFinder is your key to culinary creativity. Join us on a journey where AI redefines your relationship with food, one delectable idea at a time.
- 👨💻 Alex Wilson
- 👩💻 Janna Limpin
- 👩💻 Judith Baidoo
- 👨💻 Khalifa Fadel
- 👨💻 Kumani Kidd
- 👩💻 Lily Burton
🎨 Miro: Tool used to create a blueprint for our project https://miro.com/app/board/uXjVNaVz6L4=/
🎫 Trello: Tool used to manage our tickets https://trello.com/b/HSR93dPz/tickets
- Install Node Version Manager (NVM)
Then follow the instructions to update your
brew install nvm
~/.bash_profile
. - Open a new terminal
- Install the latest version of Node.js, currently
18.1.0
.nvm install 18
- Fork this repository
- Rename your fork to
FlavourFinders-<team name>
- Clone your fork to your local machine
- Install Node.js dependencies for both the
frontend
andapi
directories.; cd api ; npm install ; npm dotenv ; cd ../frontend ; npm install ; npm install bootstrap
In addition, you will need to create a ".env" file in your api directory.
This file will serve as your secure container for your API Key.
Side Note: You will need to create your own API Key via https://openai.com/
so that you can use this project.
Your ".env" file should look like the below:
; const env = {
; OPEN_API_KEY = 'paste your API Key here'
; }
❗️ Note ❗️
You might get warning messages about the installed dependencies at this point. You can ignore them, as long as the installation process doesn't fail.
- Install an ESLint plugin for your editor. For example:
linter-eslint
for Atom. - Install MongoDB
❗️ Note ❗️ If you see a message that says
brew tap mongodb/brew brew install [email protected]
If you need to have [email protected] first in your PATH, run:
, follow the instruction. Restart your terminal after this. - Start MongoDB
brew services start [email protected]
-
Open a terminal, navigate to your
api
directory and start your server by using the below code:; cd api ; JWT_SECRET=FlavourFinder npm start
❗️ Note ❗️ The below is an environment variable used for the JWT secret. "JWT_SECRET=FlavourFinder npm start"
-
Open another terminal, navigate to your
frontend
directory and start your frontend application by using the below code:
; cd frontend
; npm start
You should now be automatically re-directed to your web browser that will display the homepage of our webapp:
http://localhost:3000/
In the homepage, the user can navigate the website without the need to sign-in or sign-up. However, should the user wishes to save a recipe, they will need to create an account to do so. Using the navbar at the top of the page, the user can click either the:
- sign up button
http://localhost:3000/signup
or - login button
http://localhost:3000/login
The automated tests run by sending actual HTTP requests to the API. Therefore, before anything, you'll need to start the backend server in test mode (so that it connects to the test DB).
Note the use of an environment variable for the JWT secret
# Make sure you're in the api directory
; cd api
; JWT_SECRET=FlavourFinder npm run start:test
You should leave this running in a terminal.
Then, you can either run tests for the backend or the frontend following the steps below.
Run the tests in a new terminal session:
# Make sure you're in the api directory
; cd api
; JWT_SECRET=FlavourFinder npm run test
Some people occasionally experience MongoDB connection errors when running the tests or trying to use the application. Here are some tips which might help resolve such issues.
- Check that MongoDB is installed using
mongo --version
- Check that it's running using
brew services list